On Thu, 28 Apr 2005 18:53:10 +0800, "½ðÖÇΰ" <ak*******@sohu.com>
wrote:
Hi£¬you guys,
I'm a newbee in VS .Net
I installed a VS .Net 2003 Chinese Professional in my Chinese WinXP PC. When
compiling any cpp file, I got chaos codes in my output window, such as:
¨V2¨\©°?¦Á¨i¦Ä...
????...(????????)
stdafx.cpp
Tools - Options - Environment - Fonts and Colors. Make sure to pick a
font for the output window that will display your Chinese characters.
(Though I'm surprised that XP isn't choosing a full Unicode font when
drawing those characters, so be sure that Lucida Sans Unicode is
installed.)
One cheap font I found that incorporates nearly every glyph, including
those not in Lucida, is Code2000.ttf ($5). You can try it for free.
http://home.att.net/~jameskass/#dn
It doesn't matter with the Dialog based MFC project when building. But while
building a ATL project, it reported the error
"Project Build Error PRJ0025 Batch file 'file' contains Unicode contents
that could not be translated to user's ANSI code page."
Make sure you're building a Unicode version of your project. (Project
- Properties - General, Character set.
If you are using external (command-line) build utilities, make sure
your *system* default language is Chinese. In XP, I think this is
known as the "language for non-Unicode applications," but I'm not
positive that is used from command prompts.
--
Phillip Crews aka Severian
Microsoft MVP, Windows SDK
Posting email address is real, but please post replies on the newsgroup.