您的位置:首页 > 其它

error C2665: “AfxMessageBox”

2015-06-25 11:22 162 查看
使用AfxMessageBox("CreatePen Error!!");

这个语句时,编译器提示“AfxMessageBox”: 2 个重载中没有一个可以转换所有参数类型。

error C2665: “AfxMessageBox”: 2 个重载中没有一个可以转换所有参数类型

c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxwin.h(5025): 可能是“int AfxMessageBox(LPCTSTR,UINT,UINT)”

c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxwin.h(5027): 或“int AfxMessageBox(UINT,UINT,UINT)”

解决办法:

属性页——配置属性——常规——字符集,改成“未设置”
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: