c_str() in lua

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Sjizo
Not too shy to talk
Not too shy to talk
Posts: 30
Joined: Thu Aug 31, 2006 08:44

c_str() in lua

Postby Sjizo » Tue Dec 12, 2006 16:05

Hey all, I want to make a char array from a CEGUI::String. This should be possible with the c_str() function of CEGUI::String. But when I try to use it in my Lua script I get :

Code: Select all

 [string "../datafiles/lua_scripts/consoleGui.lua"]:13: attempt to call method 'c_str' (a nil value)


this would suggest the function doesn't exist or isn't in the bindings. can anyone say if this function is included in the bindings, and if not, how I can accomplish what I described above.

Return to “Help”

Who is online

Users browsing this forum: No registered users and 21 guests