Re: LoadMUILibrary()
Hi Pavel,
I've never used that library so I can't answer your question directly, but I
had a similar problem where I didn't want to duplicate the bitmaps, icons,
etc. for each satellite DLL project. Here's what I did:
1. Created main project with English "built in". I always default to
English when an appropriate locale language can't be found.
2. Create satellite DLL projects for each other language I wanted to
support. I made these as subfolders to the original code.
3. Copied the .RC File from the satellite DLL projects up one level into the
main code folder (left other files for the DLL in the subfolder).
4. Deleted original .RC file from the project and added the one from the
"one folder up".
5. Sent original English .RC file out for translation and got back one .RC
file for each language.
6. Replaced orininal other language .RC files in main folder.
7. Recompiled.
Since all of the .RC files are in the main folder they all share the same
..RES folder for resources. I've been doing this for a couple of years now
and after the minor hand set up work it goes pretty well.
Tom
"Pavel S.Tsarevskiy" <Pavel_Tsarevskiy@EPAM.com> wrote in message
news:e3Tzg8xZHHA.808@TK2MSFTNGP04.phx.gbl...
Greetings to all
I have a problem with using LoadMUILibrary() function and MUI technology
under Windows XP.
I tried to use Vista MUI technology which is supposed to work under
previous version of Microsoft OS.
I want to solve the problems with localization my application.
I want to make one project which contain neutral resources for example
icons, bitmaps, etc. And projects which contain language specified
resources for each language. So, The main benefit, we can use
LoadMUILibrary which make HMODULE which contain handle to both neutral and
language specified resources. Then we change default resource handle using
AfxSetResourcesHandle(). There're no resources in exe module. And
therefore it's not necessary to indicate HMODULE for some load resource
functions which load neutral resources. Otherwise, it's not necessary to
duplicate all neutral resources in each language dll library. So, for all
load functions resource handles would be clear.
But, when I did test version of my application I saw that It's working
under Windows Vista, but under Windows XP, HModule didn't indicate neutral
resources, so it's impossible to load resources using one HModule under
WinXP.
Is it Microsoft bug? Does anybody know about it?
Microsoft says that this technology is working under XP.
For additional information go here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/mui_LN_files.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/mui_LoadMUILibrary.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/mui_Downlevel_Support.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/mui_Win32_Resources.asp