Page 1 of 1

IGUIStaticText

Posted: Wed Aug 16, 2006 5:02 pm
by juliusctw
I noticed that most of the gui takes wchar_t type, how would I read in wchar_t from a file as wchar_t and then input it into the IGUIStaticText ?

could i just read the data in as binary and cast it to wchar_t?

Posted: Fri Aug 18, 2006 1:10 am
by Gatekeeper
Why not read the data in as a char* and then convert it to a stringw? Then you can use that to get a wchar.

Example:

Code: Select all

char buf[100];

blah blah blah

stringw text = buf;
IGUIStaticText statictext = env->addStaticText(text.c_str(), ...)


you mean that actually works

Posted: Fri Aug 18, 2006 4:30 am
by juliusctw
i gotta try it... thanx