Casting CEGUI variables

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

PostaL
Just popping in
Just popping in
Posts: 5
Joined: Sat Jan 20, 2007 06:06

Casting CEGUI variables

Postby PostaL » Mon Feb 12, 2007 20:31

I'm using editboxes to get user information.

I get the user information from the editbox and it is stored in a variable that is of the type CEGUI::String.

I want to write information to a standard text file.

It doesn't seem to let me type-cast CEGUI::String to a regular String.

Is this possible?

User avatar
PeterNewman
Just popping in
Just popping in
Posts: 13
Joined: Wed Jan 12, 2005 12:06
Contact:

Postby PeterNewman » Tue Feb 13, 2007 05:41

If what you're looking for is a const char* then the CEGUI::String::c_str() function is what you're after. If you're after a std::string I think you need to go via c_str() as well.


Return to “Help”

Who is online

Users browsing this forum: Google [Bot] and 9 guests