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
1.4m articles
1.4m replys
5 comments
57.0k users