texture mapping error
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
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
November 24, 2006 12:17 PM
Or you can add an "L" to the beginning of all your strings, like so:
auxDIBImageLoad(L"filename.ext");
auxDIBImageLoad(L"filename.ext");
December 18, 2006 01:11 AM
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
Popular Topics
Advertisement