![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, friends, My machine has English OS. When I compiled pre-existing VC++ 7.0 .sln, which was developed under Chinese version OS, I got error as the follows: HZPanel Batch file 'c:\UMTemp\20051001\20051001\Srcs\MBC HZPanel\MBC HZPanel\Debug\BAT000004.bat' contains Unicode contents that could not be translated to user's ANSI code page. [ @echo off regsvr32 /s /c "c:\UMTemp\20051001\20051001\Srcs\MBC HZPanel\MBC HZPanel\Debug\HZPanel.dll" if errorlevel 1 goto VCReportError goto VCEnd :VCReportError echo Project : error PRJ0019: A tool returned an error code from "????" exit 1 :VCEnd ] What does this mean? How can I correct it? Thanks a lot. |
#3
| |||
| |||
|
|
Andrew, Sounds like your batch file was authored in Unicode, which is a two-byte format (aka "wide characters"). I think console output only handles single-byte characters, and so an attempt was made to map the two-byte unicode characters into your current code page. There probably wasn't a mapping for the Chinese characters in the file, and so you got that error. By the looks of your file, the only troublesome characters are in the error message "echo Project : error PRJ0019...", in which case it's probably safe to just replace them. Hope that helps. -Scott "Andrew" <Andrew (AT) discussions (DOT) microsoft.com> wrote in message news:38CECD33-A891-408D-B08E-779CD27664A4 (AT) microsoft (DOT) com... Hi, friends, My machine has English OS. When I compiled pre-existing VC++ 7.0 .sln, which was developed under Chinese version OS, I got error as the follows: HZPanel Batch file 'c:\UMTemp\20051001\20051001\Srcs\MBC HZPanel\MBC HZPanel\Debug\BAT000004.bat' contains Unicode contents that could not be translated to user's ANSI code page. [ @echo off regsvr32 /s /c "c:\UMTemp\20051001\20051001\Srcs\MBC HZPanel\MBC HZPanel\Debug\HZPanel.dll" if errorlevel 1 goto VCReportError goto VCEnd :VCReportError echo Project : error PRJ0019: A tool returned an error code from "????" exit 1 :VCEnd ] What does this mean? How can I correct it? Thanks a lot. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |