1. CString to INT

CPP
CString sTmp; INT nTmp = _ttoi(sTmp);

2. INT to CString

CPP
INT nTmp = 10; CString sTmp.Format(_T("%d"), nTmp);