Page 1 of 1

Casting CEGUI variables

Posted: Mon Feb 12, 2007 20:31
by PostaL
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?

Posted: Tue Feb 13, 2007 05:41
by PeterNewman
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.