Article View: borland.public.cppbuilder.internationalization
Article #925Re: Building resource dlls with foreign (e.g. Oriental) languages under Borland cpp Builder
From: Petr Sulla
Date: Thu, 06 Sep 2001 12:34
Date: Thu, 06 Sep 2001 12:34
18 lines
1948 bytes
1948 bytes
> I have made real efforts to make my project language independable and I've
> done this via resource dlls which are build from *.rc files.
> In the code I load the text via the Windows function LoadString()
You CAN'T use LoadString() on W9x, because it maps to LoadStringA(). This
function works with 8-bit characters and converts the Unicode strings in
resources to current system codepage, which is surely not the Chinese one on
your western W9x.
Use this function instead:
http://support.microsoft.com/support/kb/articles/Q196/8/99.asp
Remember also, that the .rc file MUST be written in the right codepage and
the codepage MUST be given in the .rc file by #pragma code_page(xxx) or by a
switch on command line to the ressource compiler.
Hope this helps
Petr Sulla
Technical Details
Message-ID:
<9n7qi2$ic0$05$1@news.t-online.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mailReferences:
<3b8c0396_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10297d,cc5fbf5812c0b69 X-Google-Attributes: gid10297d,public X-Google-ArrivalTime: 2001-09-06 05:36:09 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: "Petr Sulla" <sulla@ite-web.de> Newsgroups: borland.public.cppbuilder.internationalization Subject: Re: Building resource dlls with foreign (e.g. Oriental) languages under Borland cpp Builder Date: Thu, 6 Sep 2001 14:34:13 +0200 Organization: T-Online Lines: 21 Message-ID: <9n7qi2$ic0$05$1@news.t-online.com> References: <3b8c0396_1@dnews> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 999779714 05 18816 2JizSZmESzAQdp 010906 12:35:14 X-Complaints-To: abuse@t-online.com X-Sender: 320087314325-0001@t-dialin.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200