473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to display Unicode with MFC CDialog in .NET 2005

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

May 4 '06 #1
3 5412
> 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
May 4 '06 #2

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

May 4 '06 #3
> 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

--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
May 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JJY | last post by:
Hi. I have a few sets of unicode strings I am trying to display. I can display session variables with unicode strings from a XML file, but I can't display a unicode string coming from a DLL. ...
2
by: Pagaia | last post by:
Hello to all, is there someone who know how create/paint a Cdialog with no standard borders? I'm looking for some tips because i want create a visual program with a personal skin. Thanks for...
3
by: iceColdFire | last post by:
HI, I am trying to build a simple MFC Application using MSVC 6.0 I require two CDialog windows, simultaneously. The scenario is like two windows receiving each other messages.. The problem is...
33
by: selowitch | last post by:
I've been searching in vain for a way to present typographically correct fractions (not resorting to <sup> and <sub> tags) but have been frustrated by the fact that the glyphs for one-half,...
2
by: Neil Schemenauer | last post by:
python-dev@python.org.] The PEP has been rewritten based on a suggestion by Guido to change str() rather than adding a new built-in function. Based on my testing, I believe the idea is...
5
by: Norman Diamond | last post by:
Here are two complete lines of output from Visual Studio 2005: 1>$B%W%m%8%'%/%H=PNO$K(B Authenticode $B=pL>$7$F$$$^$9(B... 1>Successfully signed: c:\T The first line means roughly: Doing...
0
by: vut.wong | last post by:
Hi, I would like to get use my activex control inside Cdialog in beginthreadex When I used Cdialog and activex control , everything is fine but when i put it inside thread (beginthreadex),...
4
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi How can I declare a CDialog object as a member of a managed class? As the following is not working: RbfPropDlg* rbfDlg; Where RbfPropDlg is the CDialog class.
1
by: jackbenimble999 | last post by:
Hello! What is the best way to display a EUC-encoded field with Access 2007? Or, failing that, how do you display a Unicode field as the character instead of the number? Do I need to use a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.