Article View: comp.windows.ms.programmer
Article #2823DLL, Dialog Box, and winmain
From: Igor Grebert
Date: Thu, 23 May 1991 21:02
Date: Thu, 23 May 1991 21:02
23 lines
1220 bytes
1220 bytes
I am having problem accessing Dialog Boxes gathered in a
special DLL with all resources, from my main program.
A resource only DLL is described in Petzold...
I have no problem with menus... It works fine as described
In WM_CREATE:
if ((hLibrary = LoadLibrary ("RESOURCE.DLL")) < 32 ) {
MessageBeep (0);
} else {
hMenu = LoadMenu(hLibrary, "MyMenu");
}
SetMenu(hWnd, hMenu);
In a IDM message:
lpProcAbout = MakeProcInstance(About, hInst);
DialogBox(hLibrary, "About", hWnd, lpProcAbout);
FreeProcInstance(lpProcAbout);
What am I missing? Should this work? If not how can I do?
No LoadDialog function... what ways around it?
Any help will be appreciated.
Technical Details
Message-ID:
<1991May23.210215.20850@leland.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!think.com!spool.mu.edu!uunet!stanford.edu!leland.Stanford.EDU!sunsetShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!think.com!spool.mu.edu!uunet!stanford.edu!leland.Stanford.EDU!sunset From: sunset@leland.Stanford.EDU (Igor Grebert) Newsgroups: comp.windows.ms.programmer Subject: DLL, Dialog Box, and winmain Message-ID: <1991May23.210215.20850@leland.Stanford.EDU> Date: 23 May 91 21:02:15 GMT Distribution: all Organization: AIR, Stanford University Lines: 23