Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2005

Tip: Looking for answers? Try searching our database.

Project Build Error PRJ0025

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
½ðÖÇΰ - 28 Apr 2005 11:53 GMT
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

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

What's wrong with my VS .Net? How should I do?

Thx in advance!
Severian [MVP] - 29 Apr 2005 03:00 GMT
>Hi£¬you guys,
>
[quoted text clipped - 6 lines]
>????...(????????)
>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.
??? - 30 Apr 2005 10:35 GMT
First, it's very kind of you for ur reply, thx a lot.

> Tools - Options - Environment - Fonts and Colors. Make sure to pick a
> font for the output window that will display your Chinese characters.

I'm sure the font I'm using can display the Chinese characters correctly,
and I still pick any other fonts, but it doen't work.

> (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
[quoted text clipped - 4 lines]
>
> http://home.att.net/~jameskass/#dn

The link you mentioned above is not available.

Any reply will be highly appreciated!
Severian [MVP] - 30 Apr 2005 13:17 GMT
>First, it's very kind of you for ur reply, thx a lot.
>
[quoted text clipped - 3 lines]
>I'm sure the font I'm using can display the Chinese characters correctly,
>and I still pick any other fonts, but it doen't work.

If you're running a multi-lingual version of Windows, be sure that
Chinese is also selected in the language bar.

>> (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.)

I meant Arial Unicode MS (included with XP); Lucida Sans Unicode does
not include Chinese glyphs.

>> 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
>
>The link you mentioned above is not available.

It works fine for me (then and now). Try:

http://home.att.net/~jameskass/

>Any reply will be highly appreciated!

Also, regarding:

"Project Build Error PRJ0025 Batch file 'file' contains Unicode
contents that could not be translated to user's ANSI code page."

Is your project running a .BAT or .CMD file?

You may want to ask your questions on
news://microsoft.public.win32.programmer.international as well; there
are people there with much more knowledge of running Visual Studio on
various Windowses than I have.

--
Phillip Crews aka Severian
Microsoft MVP, Windows SDK
Posting email address is real, but please post replies on the newsgroup.
??? - 08 May 2005 03:08 GMT
Thx very much! I've asked the question in
news://microsoft.public.win32.programmer.international you recomended.

If there're any progress, I'll post in this newsgroup.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.