use a program to add a new class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michaeldebruin
    New Member
    • Feb 2011
    • 134

    use a program to add a new class

    Hello all,

    Anyone here who knows whether it is possible to add a new class to a program?
    For example: program a is my main program and I want to use program b to just add a new class to program a.
    Anyone here who knows if this is possible or not?

    Michael
  • zmbd
    Recognized Expert Moderator Expert
    • Mar 2012
    • 5501

    #2
    Are you talking about the compiled program?

    Comment

    • michaeldebruin
      New Member
      • Feb 2011
      • 134

      #3
      No it is more like I've got a program which is already compiled and everything. And it is fully operational. But then I decide to create a short plugin for it, which people can add if they want. But I am just trying to find out what's the best way to include that plugin into my main program.

      So it should be like this example:

      I've got my working program and it got class 1 and 2 and then I want to use my plugin to add class 3 to add it. So my main program got some more functionality.

      Any idea what's the best way to do something like that?
      Thanks for any help,

      Michael

      Comment

      • zmbd
        Recognized Expert Moderator Expert
        • Mar 2012
        • 5501

        #4
        I've not worked with C#; however, it would seem to me that your main program could be designed so that it would check with a given directory for additional libraries. You'd need to code the libraries so that your main program could call them with a standard command that would return the functions/functionality of the "add-in."
        This would be something along the lines of how MS.I.E. or most other programs that allow third party add-ins work.

        Comment

        • PsychoCoder
          Recognized Expert Contributor
          • Jul 2010
          • 465

          #5
          Here's a pretty good article on plugins in C# that may lead you down the path you're looking for.

          Comment

          • michaeldebruin
            New Member
            • Feb 2011
            • 134

            #6
            oke thanks a lot PsychoCoder.

            Comment

            Working...