error C2664: “CWnd::SetDlgItemTextW”: 不能将参数 2 从“const char [2]”转换为“LPCTSTR”
来源:互联网 发布:初高中网络培训机构 编辑:程序博客网 时间:2024/06/05 23:57
解决方法很简单。
方法一:
MessageBox(_T"你已经提交成功。");
即在参数前加上_T
方法二:
在新建项目时,把使用UNICODE字符集取消,如下图:
方法三:
选择“项目”-》“XXX项目属性”-》“配置属性”-》“常规”选项中,把“字符集”改为“使用多字节字符集”,然后确定。
0 0
- error C2664: “CWnd::SetDlgItemTextW”: 不能将参数 2 从“const char [2]”转换为“LPCTSTR”
- error C2664: “CWnd::MessageBoxW”: 不能将参数 1 从“const char [17]”转换为“LPCTSTR”
- error C2664: “CWnd::MessageBoxW”: 不能将参数 1 从“const char [17]”转换为“LPCTSTR
- error C2664: “CWnd::MessageBoxW”: 不能将参数 1 从“const char [25]”转换为“LPCTSTR”
- error C2664: “CWnd::MessageBoxW”: 不能将参数 1 从“const char [17]”转换为“LPCTSTR”
- VS2008 error C2664:不能将参数 2 从“const char [5]”转换为“LPCTSTR”
- C++编译出现 error C2664: 不能将参数 2 从“const char [5]”转换为“LPCTSTR”解决办法。
- error C2664:"CWnd::MessageBoxW"不能将参数从"const char[3]"转换为"LPCSTR"
- error C2664: “CListBox::AddString”: 不能将参数 从“const char [5]”转换为“LPCTSTR”
- error C2664: “C****::XXXX”: 不能将参数 1 从“const char [7]”转换为“LPCTSTR”
- error C2664: “CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- error C2664: “CButton::Create”: 不能将参数 1 从“const char [1]”转换为“LPCTSTR
- error C2664: 不能将参数 1 从“const char [17]”转换为“LPCTSTR”
- 异常2error C2664: “sendto”: 不能将参数 2 从“CString”转换为“const char *”
- error C2664: “MessageBoxW”: 不能将参数 2 从“const char *”转换为“LPCWSTR”
- error C2664: “MessageBoxW”: 不能将参数 2 从“const char [10]”转换为“LPCWSTR”
- error C2664: “MessageBoxW”: 不能将参数 2 从“const char [36]”转换为“LPCWSTR”
- error C2664: "sendto": 不能将参数 2 从"CString"转换为"const char *"
- stm32f103rb_调试
- MATLAB 画圆
- 获取窗口标题
- 个推“送你两个五百万”助推计划正式启动
- c++ ActiveX基础1:使用VS2010创建MFC ActiveX工程项目
- error C2664: “CWnd::SetDlgItemTextW”: 不能将参数 2 从“const char [2]”转换为“LPCTSTR”
- solr 3.5 配置及应用(一)
- unity之NavMeshAgent
- 个推安卓推送——服务端api初级使用手册
- 机器学习(2)——Adaboost上
- 自动更新系统(三)
- 个推服务端api使用手册进阶
- Git学习——1.1 关于版本控制
- poj 1811 + poj 2429 (Miller_Rabin大素数测试 + Pollard_Rho大合数分解)