str.Format()的问题
我的代码如下:
int x = fun(1,2,3);
CString str;
str.Format("%d",str);
pDC->TextOut(10,10,x); 、、这行出现错误,错误提示为:cannot convert parameter 3 from 'int' to 'const CString &
请问是为什么啊?我是新手,望大侠们多指点指点啊
[解决办法]
int x = fun(1,2,3);
CString str;
str.Format("%d",x);
pDC->TextOut(10,10,str);