How to convert a CString object to integer in MFC.
CString
A _ttoi function can convert CString to integer, both wide char and ansi char can work. Below is the details:
_ttoi
CString str = _T("123"); int i = _ttoi(str);