🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

texture mapping error

Started by
2 comments, last by GameDev.net 17 years, 6 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?
Advertisement
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
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