473,608 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5425
> 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
1428
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. If I save the failing unicode string in a unicode file, I can view it fine, and the browser selects the encoding. The encoding it selects is unicode and not unicode (UTF-8).
2
2602
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 an help Bye Remo
3
2360
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 how to activate two CDialogs together...I should be able to select any one by clicking through mouse... Also do they need to be Modal or Modal less...
33
6608
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, one-eighth, three-quarters, etc. do not display in the correct typeface (or even consistently the same typeface) and seem totally resistant to attempt to fix this through CSS: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
2
2614
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 feasible. It would be helpful if people could test the patched Python with their own applications and report any incompatibilities. PEP: 349
5
1742
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 Authenticode signature to project output. The second line is harder to translate. The reason is that the second line says it successfully signed something that doesn't exist. I don't have a
0
1330
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), it doesn't work anymore. I can use Cdialog without activex control inside thread and it works
4
1571
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
2639
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 browser control? I have created a local web page which successfully displays a Unicode character when I bring it up using a standard browser, but so far I haven't been able to figure out how to get the WebBrowser control to navigate to the page - it...
0
8063
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8002
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8475
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3962
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4024
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1594
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1329
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.