CString temp;
temp.Format( "%d ",i);
AfxMessageBox(temp);
遇到问题:
error C2664: “void ATL::CStringT<BaseType,StringTraits>::Format(const wchar_t *,...)”:
解决办法:strtext.Format(_T("pwnd=0x%X\nthis=0x%X\n",PWnd,this));
注意 () 的位置!!!!!!!!
应该是
CString str;
str.Format(_T("%d"),retVal);
MessageBox(str);
开始写成了
str.Format(_T("%d",retVal));
MessageBox(str);
结果输出的都是乱七八糟的数。。。。。╮(╯▽╰)╭ 。。。。看好久啊。。。