Page 1 of 1

Problem using unicode

Posted: Wed Aug 31, 2011 12:42 pm
by badday
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

Re: Problem using unicode

Posted: Wed Aug 31, 2011 2:38 pm
by gerdb
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.

Re: Problem using unicode

Posted: Wed Aug 31, 2011 2:42 pm
by badday
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.