Problem with Resources of a Dll for 16 bit windows

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: manoj (cmanoj_at_stellarinfo.com)
Date: 05/12/04


Date: Wed, 12 May 2004 11:57:30 +0530

Hi
     I have a Mfc .exe program which contains two dlls, first.dll and
second.dll
 Both dlls contains program resources like toolbar,menu etc. when i run
program on win2k and i load any dll then program loads resources of
corresponding dll. But for win98, Only Toolbar and resource string of dll
are loaded. Menu and dialogbox are not loaded. My code is

HINSTANCE DLLname;
  DLLname = LoadLibraryEx(("first.dll"),NULL,LOAD_LIBRARY_AS_DATAFILE);
if(DLLname)
   AfxSetResourceHandle(langDLL);
for menu, i write
HMENU menu;
 menu=LoadMenu(DLLname,IDR_MENU1);
::SetMenu(m_hWnd,menu);

Is this the problem of win32 bits(win2k) and win16 bits(win98)?
OR
my program is unicode program,is this the problem of unicode?
Waiting for reply. Thanks in advance



Relevant Pages

  • Re: #pragma lib buggers everything up
    ... A lot of the resources are relevant to the static ... a client exe, and I experienced these too, i.e. the exe can't use any ... Have a resource-only DLL, you might say, - yes, I did consider this but the ... > and often on a particular version of the compiler and particular compiler ...
    (microsoft.public.vc.language)
  • Re: Localization of my MFC application
    ... We create a set of resource files for each separate program (.EXE, .DLL, ... My resources are not so large that it makes a big ... > We have an application which has an exe and uses two MFC extension DLLs ...
    (microsoft.public.vc.mfc)
  • Re: Using language DLLs for strings ONLY
    ... CString::LoadString(UINT id, HINSTANCE dll), but that would be too much like blindingly ... Do not consider subclassing CString. ... >I've created a per-language DLL with some string resources and when my ...
    (microsoft.public.vc.mfc)
  • Re: ERROR_RESOURCE_TYPE_NOT_FOUND error comes
    ... Made DLL which contains resources like dialog, ... Made a static lib project which contains classes for resources ... This control is populated by lib classes. ... locale ID, and if not found, is defaulted to the app .exe itself. ...
    (microsoft.public.vc.mfc)
  • Re: How to use .RESX or .RESOURCE to retrieve list of strings
    ... reading about the different flavors of web services that can be ... This project does not create a DLL ... Can I still use resources from a .RESX file in this scenario? ... A possibly easier method is to add a Resource RESX file to your DLL ...
    (microsoft.public.dotnet.framework.webservices)