CString to int CString str = _T("123"); int i = _ttoi(str); int to CString int i = 123; CString str ; str.Format(_T("%d"), i);