int num; CString str; //int转CString num=10; str.Format(_T("%d"),num); //CString转int str=L"10"; num=_ttoi(str);