Problem using unicode

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.
Post Reply
badday
Posts: 102
Joined: Mon Aug 16, 2010 1:14 pm

Problem using unicode

Post 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
gerdb
Posts: 194
Joined: Wed Dec 02, 2009 8:21 pm
Location: Dresden, Germany

Re: Problem using unicode

Post 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.
badday
Posts: 102
Joined: Mon Aug 16, 2010 1:14 pm

Re: Problem using unicode

Post 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.
Post Reply