I already told you my problem. I repeat it again.
I made a pure unicode Application in VC7(dotnet) on win2k (not on win98, I
know it very well as you said) . I gave MSLU support to my application. So
it can run on win98,WinMe. Suppose my Application name is MyApp and i use
two Dlls with MyApp.My OS default language is English(US).I use one dll for
Chinese Language and other for Japanese Language.I use these two Dlls
because when i run MyApp, i select resources of these Dlls.So user can see
Resources of my application in English,Chinese and Japanese.When i choose
Japanese Language,i select all resources of Japanese Language so user see
all resources in Japanese not in English.
Now my Question is
When i run my application on win98,WinMe(I run its .exe with above two
Dlls). It runs on Win98 successfully. When i select Japanese Language then i
see Japanese Resources(Toolbar,StatusBar and String Resources).But Menu and
Dialog box of Japanese Language are not displayed.I test MyApp on Win98(OS
Language English) and Win98(OS Language Japanese).In both cases, menu and
dialog boxes are not displayed.Remember if Win98 OS language is English,
then i see japanese strings as ?????. If Win98 OS language is Japanese then
i see actual japanese strings.
Note that menu and dialog of any dll are not displayed under Win98. If i add
one extra Dll(for English Language) to MyApp. Then under Win98, its menu and
dialog are alse not displayed. I use LoadMenu() and SetMenu(). Please note
Menu and dialog of MyApp are displayed. But of Dlls are not displayed.
As you said, use LoadLibrary(), I say,it doesn't work for Unicode(under
Win98) because i have tried it. I used LoadLibraryEx().
I hope you understood my problem now. and please don't use bad language.
What's OP?
Thanks
...
> I made a pure unicode Application in VC7(dotnet) on win2k (not on win98, I
> know it very well as you said) . I gave MSLU support to my application. So
[quoted text clipped - 20 lines]
> As you said, use LoadLibrary(), I say,it doesn't work for Unicode(under
> Win98) because i have tried it. I used LoadLibraryEx().
This sounds like a new problem or else you isolated your problem further.
> I hope you understood my problem now.
What I understand is that you're trying to get predictive Unicode support
out of Windows 98. Good luck on that one. The previous issue I responded
to was errors resulting from using LoadMenu. I sent you a link that states
that Windows 98 has problems loading resources who's numeric identifier is >
0x7FFF.
Example:
Windows Me/98/95: If you are using LoadLibrary to load a module that
contains a resource whose numeric identifier is greater than 0x7FFF,
LoadLibrary fails. If you are attempting to load a 16-bit DLL directly from
32-bit code, LoadLibrary fails. If you are attempting to load a DLL whose
subsystem version is greater than 4.0, LoadLibrary fails. If your DllMain
function tries to call the Unicode version of a function, LoadLibrary fails.
> and please don't use bad language.
What bad language are you talking about?
> What's OP?
"Original Poster". I asked if you were the original poster because you
changed your display name in the article tree. You should avoid this in the
future as it is confusing.
...
Sachin - 24 May 2004 15:54 GMT
Thanks
You are absolutely right for LoadLibrary(). It fails between win32 and
win16. But i use LoadLibraryEx(), it doesn't fail. For unicode we use
LoadLibraryExW().
It loads the any dll. In dll, i use its resources like DialogBox,
Toolbar,MenuBar,Statusbar and string table resources. When i load any dll
then its toolbar,statusbar and string table resources are loaded in my exe
successfully. But its menu and dialog box are not loaded. So my problem is
with menu and dialog box. I want to know why they are not loaded?
Now talk about numeric identifier is > 0x7FFF.
I made an UTF-8 program. It successfully run on all windows. and it's
resources numeric values are same as my this UNICODE program(i.e. >0x7FFF).
But in UTF-8, i used AfxLoadLibrary() because project was in shared dll.
MSLU says use static linking, so in UNICODE program,i can't use
AfxLoadLibrary() because this function is for dynamic linking.
I hope a reply from your side.
Thanks