How to call a dialog from a Win32 resource DLL
Hello There,
How can I call a dialog , which is present in a seperate Win32 resource DLL .
Any code or links shall be appreciated.
Thanks
Sujay
Re: How to call a dialog from a Win32 resource DLL
What is in the resource DLL: only resources (dialog template with controls) or also the dialog class implementation?
Re: How to call a dialog from a Win32 resource DLL
Quote:
Originally Posted by
sujayg
How can I call a dialog , which is present in a seperate Win32 resource DLL .
Dialog cannot be present in resource dll. Dialog template can. Dialog class/procedure also can. So what is your case?
Quote:
Any code or links shall be appreciated.
Maybe later. :)
Re: How to call a dialog from a Win32 resource DLL
The resource DLL has the dialog template along with some controls . It does not have the implementation.
Besides the above, I would also like to know what would be the case if the resource DLL had the implementation as well.
Re: How to call a dialog from a Win32 resource DLL
Quote:
Originally Posted by
sujayg
The resource DLL has the dialog template along with some controls . It does not have the implementation.
Then you have to
Code:
HINSTANCE hInst = ::LoadLibrary(your_dll_path_name);
and then
- for MFC application - just call AfxSetResourceHandle(hInst);
- for Win32 - pass hInst to the API creting dialog (like CreateDialog)