您的位置:首页 > 其它

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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: