messagebox如何输出变量?
mfc吧
全部回复
仅看楼主
level 3

CString str="";
int n=10;
str.Format("%d",n);
AfxMessageBox(str);
我用这个方法,但是str.Format方法不匹配啊!!!我是vs2010
2013年06月12日 15点06分 1
level 1
str.Format(L"%d",n);
2013年06月12日 16点06分 2
这个回复 666 多加一个 L 事情就解决了[开心]
2017年11月07日 04点11分
level 7
直接MessageBox(str);不行吗?我的VS2008可以。。。
2013年06月14日 06点06分 3
level 8
str.Format(_T("%d"),n);
2013年06月15日 16点06分 4
1