You can try the following code to convert CString to char,
Hope this will help.
CString str;
LPTSTR lpsz = new TCHAR[str.GetLength()];
_tcscpy(lpsz, str);
regards from kelvinlee
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.