error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'char *' to 'LPCTSTR'的解决方法
我用的是VS2005,在编译的时候报一下错误:error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'char *' to 'LPCTSTR'
解决办法:右键项目->Properties(属性)->Configuration Properties(配置属性)->Character Set(字符集设置)->选择Use Multi-Byte Character Set(使用多字节字符集)
error C2440: '=' : cannot convert from 'const char [13]' to 'LPCWSTR'。
等问题都能用该方法解决。
vs 2010英文版下:
Change your project configuration to use multibyte strings. Press ALT+F7 to open the properties, and navigate to Configuration Properties > General. Switch Character Set to "Use Multi-Byte Character Set"