Problem with Resources of a Dll for 16 bit windows
From: manoj (cmanoj_at_stellarinfo.com)
Date: 05/12/04
- Next message: Sahil: "Child Dialog window over CFormView"
- Previous message: Nacho: "/clr option and CFileDialog"
- Next in thread: Frank Hickman: "Re: Problem with Resources of a Dll for 16 bit windows"
- Reply: Frank Hickman: "Re: Problem with Resources of a Dll for 16 bit windows"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Sahil: "Child Dialog window over CFormView"
- Previous message: Nacho: "/clr option and CFileDialog"
- Next in thread: Frank Hickman: "Re: Problem with Resources of a Dll for 16 bit windows"
- Reply: Frank Hickman: "Re: Problem with Resources of a Dll for 16 bit windows"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|