How to display Unicode with MFC CDialog in .NET 2005

J

Jennifer

Hi,

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.

Any idea and hint will be greatly appreciated. Thank you in advance.

Jennifer
 
M

Mihai N.

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"
 
J

Jennifer

Mihai said:
Is the project Unicode?
Check project - Properties -> Configuration Properties -> General
Right side, under Character Set "Use Unicode Character Set"

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
 
M

Mihai N.

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?
Not unless your application runs on Chinese OS
(or Win 2K, XP, or 2003 with the default system locales set to Chinese).
And just to make sure: Chinese Traditional and Chinese Simplified require
use different system locales.

See here why: http://www.mihai-nita.net/20050306b.shtml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top