error C2664: “wsprintfW”: 不能将参数 2 从“const char [6]”转换为“LPCWSTR”;error C2665: “AfxMessageBox”: 2 个重载中

来源:互联网 发布:淘宝模特摆拍技巧 编辑:程序博客网 时间:2024/06/14 10:00

生成ocx时报错:

错误 1 error C2664: “wsprintfW”: 不能将参数 2 从“const char [6]”转换为“LPCWSTR”f:\Fpan\demo\tioamaOCX4\tioamaOCX4\Parallel.cpp36 tioamaOCX4

错误 2 error C2665: “AfxMessageBox”: 2 个重载中没有一个可以转换所有参数类型 f:\Fpan\demo\tioamaOCX4\tioamaOCX4\tioamaOCX4Ctrl.cpp271 tioamaOCX4


解决:

“项目”------“属性”------“项目属性”------“字符集”:选为使用多字节字符集

阅读全文
0 0
原创粉丝点击