If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
badday
Posts: 102 Joined: Mon Aug 16, 2010 1:14 pm
Post
by badday » Wed Aug 31, 2011 12:42 pm
Hi,
I try to use irrlicht and unicode, setting Character Set to Unicode and Preprocessor Definition _IRR_WCHAR_FILESYSTEM. However, when it comes to load textures for instance via
Code: Select all
Cursor[0] = GetDriver()->getTexture(L"../grafik/icons/Cursor_normal.png");
I get
Could not open file of texture: ./rfkiosCro_omlpg««««îîî
Do I have to add additional preprocessor definitions or anything else?
Thanks a lot,
badday
gerdb
Posts: 194 Joined: Wed Dec 02, 2009 8:21 pm
Location: Dresden, Germany
Post
by gerdb » Wed Aug 31, 2011 2:38 pm
hi,
yes there are preprocessor commands for unicode, but i dont know wich of them are always needed.
i know of _UNICODE
but imho you can forget L before file string, and let io::path do the conversion.
badday
Posts: 102 Joined: Mon Aug 16, 2010 1:14 pm
Post
by badday » Wed Aug 31, 2011 2:42 pm
Yes, but _UNICODE and UNICODE are automatically added by VS if you use Character Set Unicode. I tried that L-thing, but didn´t chance anything.