My app is only using char_t (std::wstring). I'm trying to pass this to CEGUI (through the setText() member) casting to CEGUI::utg8, however all stirngs are cut off after the first character (which means that the string parser finds a /0 in it).
How do I pass a wchar_t* to CEGUI?
Code: Select all
std::wstring unique_name;
CEGUI::ListboxTextItem *pName = 0;
...
pName->setText( (CEGUI::utf8 *) unique_name.c_str() );