CString 和 int 互相转化

CString str("1234");
int i= _ttoi(str);

在ANSI 和 UNICODE 都可以用的代码

 

 int s = 123; 

CString str;

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

posted @ 2017-05-23 14:19  Henry2017  阅读(173)  评论(0编辑  收藏  举报