You may see CString::CString constructors in MSDN. And all of them don't receive int by way of parameter!
If you want to convert int to CString, you may type following:
--------------
int nTest = 5;
CString sTest;
sTest.Format(_T("%d", nTest);
--------------
or to convert to LPTSTR:
--------------
TCHAR szTest[4];
_itot(nTest, szTest, 10);
--------------
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.