int s = 123; 

CString str;

str.Format("%d",s); 

这样就可以了,但是有的会提示这个错误

如果出现这个错误,就改成下面这个就OK了:
  str.Format(_T("%d"), s);