“CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR
来源:互联网 发布:sql默认值约束 编辑:程序博客网 时间:2024/06/06 17:39
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);
- “CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- _T “CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- error C2664: “CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- “CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR
- error C2664: “CButton::Create”: 不能将参数 1 从“const char [1]”转换为“LPCTSTR
- 不能将参数1从“const char []”转换为“LPCTSTR
- 不能将参数1从“const char []”转换为“LPCTSTR
- 不能将参数1从“const char []”转换为“LPCTSTR
- vc2008错误:不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- vc2008错误:不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- 不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- vc2008错误:不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- 不能将参数 1 从“const char [5]”转换为“LPCTSTR”
- error C2664: “CListBox::AddString”: 不能将参数 从“const char [5]”转换为“LPCTSTR”
- 不能将参数 2 从“const char [5]”转换为“LPCTSTR”解决办法
- VS2008 error C2664:不能将参数 2 从“const char [5]”转换为“LPCTSTR”
- VS2008下MessageBoxW出现不能将参数 1 从“const char [75]”转换为“LPCTSTR”
- MFC遇到的一个字符集问题:不能将参数1从“const char []”转换为“LPCTSTR”
- contextMenuStrip添加菜单项
- 架设oracle linux官方yum源
- 代码行数统计
- 在super.xxx前后处理操作的区别
- 数据库索引
- “CButton::Create”: 不能将参数 1 从“const char [5]”转换为“LPCTSTR
- 如何实现一个malloc2
- hdu 2089不要62 (数位dp)
- Android图片下载缓存库picasso解析
- Gradle 使用技巧(快捷键等...onGoing)
- LeetCode (21) Find Minimum in Rotated Sorted Array (with/without duplicates)
- spark sql 操作mysql
- SpringMVC学习系列(5) 之 数据绑定-2
- 初学.NET之AJAX