CString a;
int b;
a.Format("%d", b);
出现cannot convert parameter 1 from 'const char [] ' to 'const wchar_t * '的错误
解决方法:
cannot
从这个看你可能采用了UNICODE编码,
可以用
a.Format(L "%d ",
或者
a.Format(_T( "%d "),
来自:http://blog.sina.com.cn/s/blog_616d3ec20100yeas.html