Article View: borland.public.cppbuilder.internationalization
Article #167Re: Big problem about resource dlls.
From: JF Jolin
Date: Thu, 09 Feb 2006 20:07
Date: Thu, 09 Feb 2006 20:07
39 lines
2313 bytes
2313 bytes
The following suggestions are little aged but they work.
Scenario 1 (different executables one for each language)
--------------------------------------------------------
In the ressource file do something like
#ifdef ENGLISH
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
// Include all english dialogs here
...
// Include all english strings here
STRINGTABLE
BEGIN
END
#endif
Repeat the above section. One for each language.
Scenario 2 (one executable containing all languages)
----------------------------------------------------
Use a Message Compiler
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools/message_compiler.asp
This will produce a binary file (.bin). One for each language.
Subsequently all included in the executable.
> I have asked my question in the ��Resource DLLs in a subfolder�� thread, but nobody answers, so I post a new thread. In my test application I use the EnumProcessModules SDK function to enumerate all modules the current process loads, when I set HKEY_CURRENT_KEY_USER\Software\Borland\Locales F:\multest\Project1.exe to ENU, from the form captions I can see the resources are changed ,but the F:\multest\Project1.ENU is not in the modules list ,that is to say F:\multest\Project1.ENU is not a module or it is not currently loaded. I wonder what is the actual format of .ENU \ CHZ files .And LoadLibrary function cann��t load such files.
--
JF Jolin
Technical Details
Message-ID:
<ops4p17ee2z6rw7b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43eac8a8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,26db1ab5ed8d6483 X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII Newsgroups: borland.public.cppbuilder.internationalization Subject: Re: Big problem about resource dlls. References: <43eac8a8@newsgroups.borland.com> Message-ID: <ops4p17ee2z6rw7b@newsgroups.borland.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed From: JF Jolin <jfj@nospam.com> MIME-Version: 1.0 Date: Thu, 09 Feb 2006 15:07:52 -0500 User-Agent: Opera7.11/Win32 M2 build 2887 NNTP-Posting-Host: 66.158.141.62 X-Trace: newsgroups.borland.com 1139515456 66.158.141.62 (9 Feb 2006 12:04:16 -0700) Lines: 39 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail