int point_num;
TCHAR szText;
Char tmpStr []={} '\ 0';
Point_num=100;
Sprintf (tmpStr, "% d", point_num);
SzText=_T (tmpStr);
CodePudding user response:
Can't give single character string assignment, szText=(TCHAR) (szTemp [0]).MFC can use cstrings string class
Int iVal=100;
Cstrings szText;
SzText. The Format (_T (" % d "), iVal);
CodePudding user response:
In addition _T isn't soCodePudding user response:
建议亲自打开include\tchar.h一眼,CodePudding user response:
In addition to the above said, I found that you not LtmpStr post code, you may indeed have no definitionCodePudding user response: