From: kewei on
I am now working for a company, my main job is to complete the
localization of the software into Chinese(RPC).

I am working in the French WindowsXP system. and I changed the Control
Panel -> region and language options -> Advanced Options -> language
for the non Unicode program into Chinese(RPC).

In the beginning, everything works well, for the resource file, I
insert Chinese dialogs, menus, and stringtable. And the Chinese
characters displaying very well.

However, while I build one project(let's say Proj1) and make the
output file as a .lib file(because some other applications need
this .lib file as an input file), somethings wired happened. I build
the Proj1 successfully, but when I tried to run the other applications
that will use this .lib file, the dialog(Chinese) which I have created
in Proj1 displayed with Garbled character(like ??).

So I am very confused about it.
Could someone tell me the reason or probably solutions?

Thanks in advance!
From: Tom Serface on
Are you using VC6 or 2005/2008? If you are using VC6 you must be sure to
have the Chinese code page loaded for the characters to work correctly.

I would suggest converting the program to Unicode. You are going to save
yourself a lot of trouble in the long run. If you are using 2005 you can
also open the RC file with notepad and resave it as Unicode and the VC
resource editor will maintain it in Unicode for you.

If you have to use non-Unicode you will have to make sure that you only edit
the .RC file when the correct code page is set (I.E. you have region
settings correct).

Tom

"kewei" <KeweiShang(a)gmail.com> wrote in message
news:ab83a734-4579-4f8e-95ba-f7d56b1904dd(a)z72g2000hsb.googlegroups.com...
>I am now working for a company, my main job is to complete the
> localization of the software into Chinese(RPC).
>
> I am working in the French WindowsXP system. and I changed the Control
> Panel -> region and language options -> Advanced Options -> language
> for the non Unicode program into Chinese(RPC).
>
> In the beginning, everything works well, for the resource file, I
> insert Chinese dialogs, menus, and stringtable. And the Chinese
> characters displaying very well.
>
> However, while I build one project(let's say Proj1) and make the
> output file as a .lib file(because some other applications need
> this .lib file as an input file), somethings wired happened. I build
> the Proj1 successfully, but when I tried to run the other applications
> that will use this .lib file, the dialog(Chinese) which I have created
> in Proj1 displayed with Garbled character(like ??).
>
> So I am very confused about it.
> Could someone tell me the reason or probably solutions?
>
> Thanks in advance!

From: Serge Wautier on
I'm confused: .lib files can't contain resources. Do you mean you built a
DLL?
Where is this dialog stored?

[Warning! ad ahead:]
appTranslator helps you translate your app by removing the hassle of .rc
files maintenance. Create translated copies of your exe/dll or create
resource dlls in one click.

Regards,

Serge.
http://www.apptranslator.com - Localization tool for your MFC applications





"kewei" <KeweiShang(a)gmail.com> wrote in message
news:ab83a734-4579-4f8e-95ba-f7d56b1904dd(a)z72g2000hsb.googlegroups.com...
>I am now working for a company, my main job is to complete the
> localization of the software into Chinese(RPC).
>
> I am working in the French WindowsXP system. and I changed the Control
> Panel -> region and language options -> Advanced Options -> language
> for the non Unicode program into Chinese(RPC).
>
> In the beginning, everything works well, for the resource file, I
> insert Chinese dialogs, menus, and stringtable. And the Chinese
> characters displaying very well.
>
> However, while I build one project(let's say Proj1) and make the
> output file as a .lib file(because some other applications need
> this .lib file as an input file), somethings wired happened. I build
> the Proj1 successfully, but when I tried to run the other applications
> that will use this .lib file, the dialog(Chinese) which I have created
> in Proj1 displayed with Garbled character(like ??).
>
> So I am very confused about it.
> Could someone tell me the reason or probably solutions?
>
> Thanks in advance!

From: kewei on
On May 21, 5:16 pm, "Tom Serface" <tom.nos...(a)camaswood.com> wrote:
> Are you using VC6 or 2005/2008? If you are using VC6 you must be sure to
> have theChinesecode page loaded for the characters to work correctly.
>
> I would suggest converting the program to Unicode. You are going to save
> yourself a lot of trouble in the long run. If you are using 2005 you can
> also open the RC file with notepad and resave it as Unicode and the VC
> resource editor will maintain it in Unicode for you.
>
> If you have to use non-Unicode you will have to make sure that you only edit
> the .RC file when the correct code page is set (I.E. you have region
> settings correct).
>
> Tom
>
> "kewei" <KeweiSh...(a)gmail.com> wrote in message
>
> news:ab83a734-4579-4f8e-95ba-f7d56b1904dd(a)z72g2000hsb.googlegroups.com...
>
> >I am now working for a company, my main job is to complete the
> > localization of the software intoChinese(RPC).
>
> > I am working in the French WindowsXP system. and I changed the Control
> > Panel -> region and language options -> Advanced Options -> language
> > for the non Unicode program intoChinese(RPC).
>
> > In the beginning, everything works well, for the resource file, I
> > insertChinesedialogs, menus, and stringtable. And theChinese
> > characters displaying very well.
>
> > However, while I build one project(let's say Proj1) and make the
> > output file as a .lib file(because some other applications need
> > this .lib file as an input file), somethings wired happened. I build
> > the Proj1 successfully, but when I tried to run the other applications
> > that will use this .lib file, the dialog(Chinese) which I have created
> > in Proj1 displayed with Garbled character(like ??).
>
> > So I am very confused about it.
> > Could someone tell me the reason or probably solutions?
>
> > Thanks in advance!

I am using VC6.
and I "have theChinesecode page loaded for the characters to work
correctly." by setting the control panel. I am quite sure I did this
step accurately. I even tried the application in Chinese OS.
Actually, the application i am in charge of in non-unicode, but
the .rc file is saved in unicode I believe.

Actually, as far as I know. of course, a .lib file can't not
contain .rc, but actually, the application add the .rc as an external
dependencies, so the application can use the .rc file and .lib, that's
what my company did and it was working well with other language, like
german, english, french.

The thing that is wired is that, even in the same dialog, some of the
static strings or buttons show in "??" or messy form, but some other
static string or buttons shows successfully in Chinese form.
It's in the same dialog...!
So I couldn't understand why.
From: kewei on
On May 21, 9:48 pm, "Serge Wautier" <se...(a)wautier.nospam.net> wrote:
> I'm confused: .lib files can't contain resources. Do you mean you built a
> DLL?
> Where is this dialog stored?
>
> [Warning! ad ahead:]
> appTranslator helps you translate your app by removing the hassle of .rc
> files maintenance. Create translated copies of your exe/dll or create
> resource dlls in one click.
>
> Regards,
>
> Serge.http://www.apptranslator.com- Localization tool for yourMFCapplications
>
> "kewei" <KeweiSh...(a)gmail.com> wrote in message
>
> news:ab83a734-4579-4f8e-95ba-f7d56b1904dd(a)z72g2000hsb.googlegroups.com...
>
> >I am now working for a company, my main job is to complete the
> > localization of the software intoChinese(RPC).
>
> > I am working in the French WindowsXP system. and I changed the Control
> > Panel -> region and language options -> Advanced Options -> language
> > for the non Unicode program intoChinese(RPC).
>
> > In the beginning, everything works well, for the resource file, I
> > insertChinesedialogs, menus, and stringtable. And theChinese
> > characters displaying very well.
>
> > However, while I build one project(let's say Proj1) and make the
> > output file as a .lib file(because some other applications need
> > this .lib file as an input file), somethings wired happened. I build
> > the Proj1 successfully, but when I tried to run the other applications
> > that will use this .lib file, the dialog(Chinese) which I have created
> > in Proj1 displayed with Garbled character(like ??).
>
> > So I am very confused about it.
> > Could someone tell me the reason or probably solutions?
>
> > Thanks in advance!

Hello, actually, for example, App1 project want to use the .lib file
which created by project B.
this dialog stored in the .rc file of projectB. but the .rc file is
added as an external dependencies.