CString Format() is showing garbled chinese text

  • Thread starter Thread starter Visual studio latest compatible version for VS 6.0
  • Start date Start date
V

Visual studio latest compatible version for VS 6.0

Guest
Hello

I am trying to convert VS 6.0 code to VS 2013.

trying to format a string with CString garbled text. Not sure how to properly convert the variable str to be stored in the CString in English. Any suggestions on how fix this issue?

thanks

Here is the code:

catch (char *str)

{

sMsg.Format(_T("Exception occurred: '%s'"), (LPCSTR)str);

MessageBox(NULL, sMsg, _T("MSXML2 Error"), MB_OK);

}



US

Continue reading...
 
Back
Top