Unicode & CString
-
Hi, I am developing my application in VS2005 MFC. I have selected multi-byte charater set in project settings, now i need to save/copy japanese string from TCHAR array into CString variable without changing multi-byte charater encoding to unicode encoding in project settings. Sachin P.
-
Hi, I am developing my application in VS2005 MFC. I have selected multi-byte charater set in project settings, now i need to save/copy japanese string from TCHAR array into CString variable without changing multi-byte charater encoding to unicode encoding in project settings. Sachin P.
A
CString
holdsTCHAR
s, so you don't need to do anything special. Just assign yourTCHAR
array to aCString
variable.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Dunder-Mifflin, this is Pam.
-
Hi, I am developing my application in VS2005 MFC. I have selected multi-byte charater set in project settings, now i need to save/copy japanese string from TCHAR array into CString variable without changing multi-byte charater encoding to unicode encoding in project settings. Sachin P.
To add to Michael's reply... If the Japanese string is Unicode then you don't want to store it in a TCHAR array. It should be in a wchar_t array. Then use a CStringW instead of a generic CString. Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder