VC2010 messagebox 报错解决
来源:互联网 发布:java数组不定义长度 编辑:程序博客网 时间:2024/06/05 09:51
error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [12]' to 'LPCTSTR'解决方案
You will have to do one of two things:
- Change your project configuration to use multibyte strings. Press ALT+F7 to open the properties, and navigate to Configuration Properties > General. Switch Character Set to "Use Multi-Byte Character Set".
- Indicate that the string literal, in this case "Hello world!" is of a specific encoding. This can be done through either prefixing it withL, such as L"Hello world!", or surrounding it with the generic_T("Hello world!") macro. The latter will expand to theL prefix if you are compiling for unicode (see #1), and nothing (indicating multi-byte) otherwise.
0 0
- VC2010 messagebox 报错解决
- MessageBox()报错的问题
- Cocos2dx-安装VC2010模板报错的解决办法
- [cocos2d-x]编译cocos2d-win32.vc2010报错
- cocos2d-x-2.1.5 cocos2d-win32.vc2010.sln 报错
- VC2010 CString.Format使用报错 error C2664
- 解决VC2010创建项目失败
- QT messagebox 乱码解决
- VC2010使用openssl-1.1.0f静态库时链接报错
- vc2010
- oracle报错解决
- 解决memcached_set()报错
- lsnr报错解决
- lsnr报错解决
- 解决yum报错
- SVN报错解决
- 基础报错解决
- zookeeper报错解决
- 关于字符编码
- attr属性写法
- 2014.5.7 W3C Media Capture and Stream 草案添加了 “4.3.5 MediaTrackConstraints”
- BZOJ 3531: [Sdoi2014]旅行
- wordpress 首页文章显示摘要
- VC2010 messagebox 报错解决
- django第一篇
- OpenCV自带方法遍历目录下文件
- linux设置非标准波特率200000bit/s
- php基础4--------数组相关函数
- highcharts.com 包括曲线图、区域图、柱状图、饼状图、散状点图和综合图表
- 腾讯、CSDN合作 欲打造中国最大开源社区
- Android中的日期控件DatePicker和DatePickerDialog
- Build Active Architecture Only属性