读了很多人的wsprintf用法说明,无一能正确符合我的使用,最后发现如下方法是最简明的方法:
int i = 1;
CString str;
str.Format(_T("%d"), i);
MessageBoxW(str, _T("数字转化为字符串"), 0);
读了很多人的wsprintf用法说明,无一能正确符合我的使用,最后发现如下方法是最简明的方法:
int i = 1;
CString str;
str.Format(_T("%d"), i);
MessageBoxW(str, _T("数字转化为字符串"), 0);