cannot convert parameter 1 from 'const char [] ' to 'const wchar_t * '的解决方法
2015-11-05 20:35
387 查看
CString a;
int
b;
a.Format("%d",
b);
出现cannot convert parameter 1 from 'const char [] ' to
'const wchar_t * '的错误
解决方法:
cannot convert parameter 1 from 'const char [3] ' to 'const wchar_t * '
从这个看你可能采用了UNICODE编码,
可以用
a.Format(L "%d ", b);
或者
a.Format(_T( "%d "), b);
int
b;
a.Format("%d",
b);
出现cannot convert parameter 1 from 'const char [] ' to
'const wchar_t * '的错误
解决方法:
cannot convert parameter 1 from 'const char [3] ' to 'const wchar_t * '
从这个看你可能采用了UNICODE编码,
可以用
a.Format(L "%d ", b);
或者
a.Format(_T( "%d "), b);
相关文章推荐
- HDU 2222 Keywords Search (AC自动机)
- hihocoder 1110 正则表达式
- scala实现插入排序
- 为kali 2.0 安装 VMware tools
- Activity Task相关
- 冒泡排序的推导
- Linux内存
- 【OpenCV】计算图像的水平和垂直积分投影
- OC初期-05字典,集合
- Linux内存
- Linux内存
- 归档、解归档(序列化、反序列化)
- 玩转树莓派--GPIO操作
- keepalived入门之配置文件详解(3)
- 设计模式:模版模式(Template Pattern)
- 【174】C#添加非默认字体
- request body stream exhausted错误解决方案
- Codeforces Round #329 (Div. 2)
- Codeforces Round #329 (Div. 2)A. 2Char
- 注册AxtiveX控件