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. *** DLL, is this POSSIBLE???****************

*** DLL, is this POSSIBLE???****************

Scheduled Pinned Locked Moved C / C++ / MFC
2 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.
  • S Offline
    S Offline
    Steve Lai
    wrote on last edited by
    #1

    Hi everyone, I have this question regarding DLL. I'm currently working on a project that contains an application( A FRAME ) that is using DLL functions. I have A MENU on the frame and in the menu, I have functions that uses DLL. Let say for example, in the MENU, I would have an option named CACULATIONS, and under CALCULATIONS, I would have a ADDITION option. So when I click on the ADDITION, a dialog box would pop up and allow me to use the addition function created by a ADDITION DLL. What I would like to know is the following, Is it possible for me to add new DLL's into the application without adding codes to the application itself (i.e without adding new codes to the frame)?? For example, let's say I have a new Calculation method called SUBTRACT and it's a separate DLL from the original adding dll. Then if I have a option in the MENU called ADD DLL, I would have a dialog box pop up in which allows me to add the new dll. The dialog box will contain edit boxes that asks the user to enter where the new DLL file is, and what the user would like to call the new DLL method that he's adding. So when the user enter the values and runs the program, a SUBTRACT option will now be listed under the CALCUATION MENU and the application will now be able to refer to the SUBTRACT DLL without adding new codes to the application itself. IS THIS POSSIBLE??? It's sort of like a plugin thing. IF ANYONE HAVE ANY IDEAS, PLEASE LET ME KNOW. THANK YOU VERY MUCH. Steve P.S: One more thing, is there a code that allows me to call up the OPEN AND SAVE dialog boxes. (i.e when you want to open an existing document in Words, a dialog pop up.) How do I write codes for those dialog boxes for OPEN, SAVE, AND SAVE AS??? PLMK. THANKS AGAIN!

    J 1 Reply Last reply
    0
    • S Steve Lai

      Hi everyone, I have this question regarding DLL. I'm currently working on a project that contains an application( A FRAME ) that is using DLL functions. I have A MENU on the frame and in the menu, I have functions that uses DLL. Let say for example, in the MENU, I would have an option named CACULATIONS, and under CALCULATIONS, I would have a ADDITION option. So when I click on the ADDITION, a dialog box would pop up and allow me to use the addition function created by a ADDITION DLL. What I would like to know is the following, Is it possible for me to add new DLL's into the application without adding codes to the application itself (i.e without adding new codes to the frame)?? For example, let's say I have a new Calculation method called SUBTRACT and it's a separate DLL from the original adding dll. Then if I have a option in the MENU called ADD DLL, I would have a dialog box pop up in which allows me to add the new dll. The dialog box will contain edit boxes that asks the user to enter where the new DLL file is, and what the user would like to call the new DLL method that he's adding. So when the user enter the values and runs the program, a SUBTRACT option will now be listed under the CALCUATION MENU and the application will now be able to refer to the SUBTRACT DLL without adding new codes to the application itself. IS THIS POSSIBLE??? It's sort of like a plugin thing. IF ANYONE HAVE ANY IDEAS, PLEASE LET ME KNOW. THANK YOU VERY MUCH. Steve P.S: One more thing, is there a code that allows me to call up the OPEN AND SAVE dialog boxes. (i.e when you want to open an existing document in Words, a dialog pop up.) How do I write codes for those dialog boxes for OPEN, SAVE, AND SAVE AS??? PLMK. THANKS AGAIN!

      J Offline
      J Offline
      jose 1
      wrote on last edited by
      #2

      Read the article: How to do run-time (or explicit) linking of C++ plug-in components and objects By Gert Boddaert here at Codeproject. http://www.codeproject.com/dll/plug-in.asp I hope this helps Best regards

      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