Dialog in a DLL !?!?!?!?
-
Hello to all !!! I'm quite new to DLL and I have a simple (I think) question. Can I have a Dialog (from resource) in a DLL and have the implementation in the main program (exe) and be able to load and display that dialog from the main exe ??? If so, how can I do it !?!?!? Can someone explain to me how such a thing can be done. Thanks in advance for any help :) Have a nice day !
-
Hello to all !!! I'm quite new to DLL and I have a simple (I think) question. Can I have a Dialog (from resource) in a DLL and have the implementation in the main program (exe) and be able to load and display that dialog from the main exe ??? If so, how can I do it !?!?!? Can someone explain to me how such a thing can be done. Thanks in advance for any help :) Have a nice day !
Hi : Its pretty simple. Insert a new resource to your dll ( Dialog ) and add class to your resource inheriting from CDialog . and in the dllmain just CMyDialog dlg; dlg.DoModal() or Create and ShowWindow. Now from your Exe jusrt call load library and that is it.