Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Dialogs and dlls, normal or annoying? (MFC)

Dialogs and dlls, normal or annoying? (MFC)

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    T1TAN
    wrote on last edited by
    #1

    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.

    R 1 Reply Last reply
    0
    • T T1TAN

      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.

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      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

      T 1 Reply Last reply
      0
      • R Roger Allen

        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

        T Offline
        T Offline
        T1TAN
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups