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?
IGUIStaticText
IGUIStaticText
irrlicht game character project
http://picasaweb.google.com/juliusctw/FinishedArt
http://picasaweb.google.com/juliusctw/FinishedArt
-
- Posts: 31
- Joined: Fri Apr 21, 2006 12:00 am
- Location: Australia
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:
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
i gotta try it... thanx
irrlicht game character project
http://picasaweb.google.com/juliusctw/FinishedArt
http://picasaweb.google.com/juliusctw/FinishedArt