-
January 16th, 2013, 03:26 AM
#1
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
-
January 16th, 2013, 04:44 AM
#2
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?
Victor Nijegorodov
-
January 16th, 2013, 07:38 AM
#3
Re: How to call a dialog from a Win32 resource DLL
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?
Any code or links shall be appreciated.
Maybe later.
Best regards,
Igor
-
January 16th, 2013, 08:27 AM
#4
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.
Last edited by sujayg; January 16th, 2013 at 08:29 AM.
-
January 16th, 2013, 08:46 AM
#5
Re: How to call a dialog from a Win32 resource DLL
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)
Victor Nijegorodov
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|