Dialogs and dlls, normal or annoying? (MFC)
-
Hi everyone:) I'm in the first phase of a project where I just plan stuff, and it seems I'll be developing a plugin system for my app. I'm working in MFC, I don't really have much experience with dll's, there are still things bugging me (and we all hate bugs:cool: ) Now the questions.. a) Is it possible for the main app to load a dialog from dll and display it as a child window of tab control? or.. b) ..would it be better if the dll itself displays a standalone dialog using main app window as it's parent? Which one of these would be easier to implement? Every dll would be a plugin, and giving the plugins an option to display windows is a nice thing to do. c) Is there a way for dll plugins to add a menu to the main app window, and get notifications when the user clicks on them? Any kind of help is appreciated, links to articles etc.. Also, if you have a good tip on plugin system development, please share it :cool: thx --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.
-
Hi everyone:) I'm in the first phase of a project where I just plan stuff, and it seems I'll be developing a plugin system for my app. I'm working in MFC, I don't really have much experience with dll's, there are still things bugging me (and we all hate bugs:cool: ) Now the questions.. a) Is it possible for the main app to load a dialog from dll and display it as a child window of tab control? or.. b) ..would it be better if the dll itself displays a standalone dialog using main app window as it's parent? Which one of these would be easier to implement? Every dll would be a plugin, and giving the plugins an option to display windows is a nice thing to do. c) Is there a way for dll plugins to add a menu to the main app window, and get notifications when the user clicks on them? Any kind of help is appreciated, links to articles etc.. Also, if you have a good tip on plugin system development, please share it :cool: thx --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.
Can I point you in the direction of my MFC plug-in architecture for MFC: http://www.codeproject.com/library/piarchitecture.asp[^] If you vote me down, my score will only get lower
-
Can I point you in the direction of my MFC plug-in architecture for MFC: http://www.codeproject.com/library/piarchitecture.asp[^] If you vote me down, my score will only get lower
That's a great article indeed, but unfortunately I can't use much of the code, my app will be dialog based, and I have the basic idea of plugin system. Has some good tricks in it though, might use some of it.:cool: Also, using MESSAGE_MAPs is a bit too much for my app, I was thinking more like please-notify-me-of-an-even-using-my-exported-function kind of plugin.:) My only trouble is displaying a window and/or a menu from dll, not sure if this could work properly..:doh: --- http://sprdsoft.cmar-net.org - We Sprd You Softly Our site features contents and several images. All of this is very weird. In the end, war is not about who's right, it's about who's left.