Mihai N. wrote:
Is there anyone to have idea how to make the MFC CDialog box display
Unicode (like Chinese characters) in .NET 2005? We have some dilog
boxes created from CDialog class in VC++ 6.0 and try to integrate them
into our new project developed in .NET 2005 to display Unicode.
Is the project Unicode?
Check project - Properties -> Configuration Properties -> General
Right side, under Character Set "Use Unicode Character Set"
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
Mihai,
If I set the "Use Unidocode Character Set", the dialog box works fine.
Since our most of codes are wrotten in C/C++ styles, the "Unicode
Character Set" will cause a lot of errors and warnings. This means we
must do a lot of code changes to compile the project. I am looking if
we can still use "Use Multi-Byte Character Set" to make most source
codes happy and find a way to work around with the dialog boxes display
Chinese characters. Is this possible in your opinion? Our problem is
that the DDX_Text function does not accept wchar_t string and the
CSting does not work for Unicode for Multi-Byte Character Set.
Thank you for your response.
Jennifer