error C2664: “CButton::Create”: 不能将参数 1 从“const char [1]”转换为“LPCTSTR
来源:互联网 发布:水冷的热仿真软件 编辑:程序博客网 时间:2024/05/23 11:58
Windows使用两种字符集ANSI和UNICODE,前者就是通常使用的单字节方式,但这种方式处理象中文这样的双字节字符不方便,容易出现半个汉字的情况。而后者是双字节方式,方便处理双字节字符。Windows
view plaincopy to clipboardprint?
CButton m_Button;
m_Button.Create("确定",WS_CHILD | BS_DEFPUSHBUTTON,CRect(0,0,60,100),this,123);
CButton m_Button;
m_Button.Create("确定",WS_CHILD | BS_DEFPUSHBUTTON,CRect(0,0,60,100),this,123);
出现编译出现错误:
error C2664: “CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR”
1>
改正后:
view plaincopy to clipboardprint?
CButton m_Button;
m_Button.Create(_T("确定"),WS_CHILD | BS_DEFPUSHBUTTON,CRect(0,0,60,100),this,123);
- error C2664: “CButton::Create”: 不能将参数 1 从“const char [1]”转换为“LPCTSTR
- error C2664: “CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- “CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- _T “CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- “CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR
- error C2664: “CWnd::MessageBoxW”: 不能将参数 1 从“const char [17]”转换为“LPCTSTR”
- error C2664: “CWnd::MessageBoxW”: 不能将参数 1 从“const char [17]”转换为“LPCTSTR
- error C2664: “C****::XXXX”: 不能将参数 1 从“const char [7]”转换为“LPCTSTR”
- error C2664: “CWnd::MessageBoxW”: 不能将参数 1 从“const char [25]”转换为“LPCTSTR”
- error C2664: “CWnd::MessageBoxW”: 不能将参数 1 从“const char [17]”转换为“LPCTSTR”
- error C2664: 不能将参数 1 从“const char [17]”转换为“LPCTSTR”
- VS2013 error C2664: “FILE *fopen(const char *,const char *)”: 无法将参数 1 从“LPCTSTR”转换为“const char *”
- c++error:C2664“intCWnd::MessageBoxW(LPCTSTR,LPCTSTR,UINT)”: 无法将参数 1 从“const char [12]”转换为“LPCTSTR”
- error C2664: “CListBox::AddString”: 不能将参数 从“const char [5]”转换为“LPCTSTR”
- error C2664: “CWnd::SetDlgItemTextW”: 不能将参数 2 从“const char [2]”转换为“LPCTSTR”
- VS2008 error C2664:不能将参数 2 从“const char [5]”转换为“LPCTSTR”
- error C2664: 不能将参数 1 从“const char [3]”转换为“const wchar_t *”
- error C2664: “fopen”: 不能将参数 1 从“const char [ ]”转换为“const wchar_t
- mysql数据库还原出错ERROR:Unknown command ‘\\’解决手记
- 使用spring mvc 设置方法定时执行
- 大数据分析技术生态圈一览
- css导入
- mysql 完整性约束
- error C2664: “CButton::Create”: 不能将参数 1 从“const char [1]”转换为“LPCTSTR
- intellij idea 添加动态 user library(java.lang.VerifyError)
- 导入第三方细节
- mvp模式
- Variable ‘time_zone’ can’t be set to the value of ‘NULL’解决方法
- html5新增的type类型
- Python学习手册 - 07
- SSH网上商城环境配置—浅析Hibernate
- 2015年大二上-数据结构-树和二叉树-2-(4)中序线索化二叉树