M
Morten Overgaard
Hi
How do I convert a managed System::String to a CString. I need to handle
unicode characters ( Japan and Chinese ) as well as "normal" ANSI
characters.
I have tried the following
char* p =
(char*)System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(
msg ).ToPointer();
CString str(p);
which works fine as long we are not dealing with Japanese. How do I handle
both situations??
Regards Morten
How do I convert a managed System::String to a CString. I need to handle
unicode characters ( Japan and Chinese ) as well as "normal" ANSI
characters.
I have tried the following
char* p =
(char*)System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(
msg ).ToPointer();
CString str(p);
which works fine as long we are not dealing with Japanese. How do I handle
both situations??
Regards Morten