CString 和 int 互相转化 CString str("1234");int i= _ttoi(str);在ANSI 和 UNICODE 都可以用的代码 int s = 123; CString str; str.Format(_T("%d"),s);