CString to int

CString to int 

CString str = _T("123");

int i = _ttoi(str);

 int to CString 

int i = 123;

CString str ;

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

你可能感兴趣的:(C++,VC)