How to convert a CString object to integer in MFC.
CString
If you are using TCHAR.H routine (implicitly, or explicitly), be sure you use _ttoi() function, so that it compiles for both Unicode and ANSI compilations.
TCHAR.H
_ttoi()
More details: https://msdn.microsoft.com/en-us/library/yd5xkb5c.aspx
2.1m questions
2.1m answers
60 comments
57.0k users