代码
第一种
int a = 111;
char b[20];
itoa(a,b,
10);

xxx.SetWindowText(CString(b));  

第二种
int a = 111;
TCHAR b[
20]={0};
_itot(a,b,
10);

xxx.SetWindowText(b); 

第三种
CString str;
str.Format(_T(
"%d"), a);
SetWindowText(str);

 

相关文章:

  • 2021-07-25
  • 2021-05-22
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-22
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
相关资源
相似解决方案