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#
  4. add reference to a .exe

add reference to a .exe

Scheduled Pinned Locked Moved C#
xmltutorial
4 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.
  • C Offline
    C Offline
    cmarmr
    wrote on last edited by
    #1

    i have a program that i want to be able to dynamicaly add ref to dll that i build at a latter date. my plan is to store these ref. is an xml file and when i run my program read the xml file and add the ref to the dll's. but i am unsure how to add dll ref to a already compailed program

    Thanks, Chad Aiena

    D 1 Reply Last reply
    0
    • C cmarmr

      i have a program that i want to be able to dynamicaly add ref to dll that i build at a latter date. my plan is to store these ref. is an xml file and when i run my program read the xml file and add the ref to the dll's. but i am unsure how to add dll ref to a already compailed program

      Thanks, Chad Aiena

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      That depends on if the .EXE is a COM server or another .NET app or not. If it's neither one of those, you cannot add a reference to it. You also cannot add a reference at runtime. It take it this is for plugin support for your app?

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      C 1 Reply Last reply
      0
      • D Dave Kreskowiak

        That depends on if the .EXE is a COM server or another .NET app or not. If it's neither one of those, you cannot add a reference to it. You also cannot add a reference at runtime. It take it this is for plugin support for your app?

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        C Offline
        C Offline
        cmarmr
        wrote on last edited by
        #3

        the dll is a csharp dll i want to implment a menu that i can add calls to a dll at a later time for examlpl i would have a job that downloads files from a ftp site and uses the files to update a back end database and i could also have another job that downloads some zip file for a user to process at a latter time. and i was thinking it would be easier if i just had one menu that i could add ref. to different dll's to handel the custom job's i want to setup rather than recompiling the menu each time

        Thanks, Chad Aiena

        D 1 Reply Last reply
        0
        • C cmarmr

          the dll is a csharp dll i want to implment a menu that i can add calls to a dll at a later time for examlpl i would have a job that downloads files from a ftp site and uses the files to update a back end database and i could also have another job that downloads some zip file for a user to process at a latter time. and i was thinking it would be easier if i just had one menu that i could add ref. to different dll's to handel the custom job's i want to setup rather than recompiling the menu each time

          Thanks, Chad Aiena

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Your talking about adding plugin support to your application. There is no "adding a reference" here. Your code has to look in a folder for assemblies that have classes that implement an Interface that your app is going to expect these .DLL's to implement. Google for "c# plugin support". You can start with this[^] little article.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          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