VC编译出现如下错误:错误 1 error C2664: “wsprintfW”: 不能将参数 2 从“const char [6]”转换为“LPCWSTR” e:\c_2008\pra6\pra6\
2016-12-15 09:58
846 查看
解决方法:
项目---->属性------>常规----->项目默认值------>字符集设为“未设置”
项目---->属性------>常规----->项目默认值------>字符集设为“未设置”
相关文章推荐
- error C2664: “wsprintfW”: 不能将参数 2 从“const char [6]”转换为“LPCWSTR”;error C2665: “AfxMessageBox”: 2 个重载中
- VC6转VC8出现问题:error C2664: “fopen”: 不能将参数 1 从“const char [ ]”转换为“const wchar_t *”
- 下面的程序在VC6通过,在VS2008不能,错误信息都是“不能将参数……从const char[]转换为LPCWSTR”
- 当编译出现error C2664:不能将参数从“const char *”转换为“LPCWSTR”时
- 【转载】C++编译出现 error C2664: 不能将参数 2 从“const char [5]”转换为“LPCTSTR”解决办法。
- C++编译出现 error C2664: 不能将参数 2 从“const char [5]”转换为“LPCTSTR”解决办法。
- C++ 编译错误 “CREATEFILEW”: 不能将参数 _从“CHAR []”转换为“LPCWSTR”
- 关于vc6.0程序到vs2008下运行时的错误error C2664: “MessageBoxW”: 不能将参数 2 从“char *”转换为“LPCWSTR”
- vc2008错误:不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- vc2008错误:不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- 用高版本vs编译旧VC代码时,如何处理无法从“const char [10]”转换为“LPCWSTR”的错误
- error c2664:"MessageBoxW":不能将参数2从“const char[15]”转换为“LPCWSTR”与指向的类型无关
- C++: VC6转VC8出现问题:error C2664: “fopen”: 不能将参数 1 从“CString”转换为“const char *”
- C++: VC6转VC8出现问题:error C2664: “fopen”: 不能将参数 1 从“CString”转换为“const char *” from http://www.cnblogs.com/moon2bird/archive/2009/02/27/1399675.html
- error C2664: “LoadLibraryW”: 不能将参数 1 从“const char [21]”转换为“LPCWSTR”
- VS2010 C++ 串口编程 错误error C2664: “CreateFileW”: 不能将参数 1 从“const char *”转换为“LPCWSTR”
- vc 不能将参数 1 从const char [*]转换为LPCWSTR
- error C2664: “MessageBoxW”: 不能将参数 2 从“const char [36]”转换为“LPCWSTR”
- C++: VC6转VC8出现问题:error C2664: “fopen”: 不能将参数 1 从“CString”转换为“const char *”
- error C2664: “MessageBoxW”: 不能将参数 2 从“const char [10]”转换为“LPCWSTR”