Advertisement

texture mapping error

Started by November 23, 2006 08:03 AM
2 comments, last by GameDev.net 17 years, 11 months ago
using the lesson 6 texture mapping tutorial, i've been attempting to add textures to my own project, however i keep getting the following error: c:\[project folder path](54) : error C2664: 'auxDIBImageLoadW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR' any ideas how this is caused? and any possible solutions?
I guess your "character set" in project settings is set to unicode... You must change it to "multibyte character set".

I don't what IDE you use, but on visual studio 8 you can find it in Project->[Project] properties->General->Character Set

Good luck
Advertisement
Or you can add an "L" to the beginning of all your strings, like so:

auxDIBImageLoad(L"filename.ext");
In case anyone else finds this question, I had this problem too and changing the character settings in VS 8 (2005) did the trick for me.

This topic is closed to new replies.

Advertisement