您的位置:首页 > 编程语言 > PHP开发

使用vs2008 的OutputDebugString 时编译产生的错误

2013-10-10 14:52 495 查看
错误信息:

1. 中文版

“OutputDebugStringW”: 不能将参数 1 从“const char [18]”转换为“LPCWSTR”

2. 英文版

'OutputDebugStringW' : cannot convert parameter 1 from 'char [100]' to 'LPCWSTR'

原因:

OutputDebugString默认是Unicode方式,会变成OutputDebugStringW。

解决:

如果想用ANSI版本的,直接写OutputDebugStringA,或者设置工程属性,使用MBCS的编码集。

other: 这个错误的解决办法用中文还真难找。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: