"Late binding" in C#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Katit

    "Late binding" in C#

    Hello,

    I searched archives and all pointing to use of VB6 objects from C#

    I want something different.

    1. How can I build expandable platform? Let's say DLL's will have
    common set of methods (interface) and I will have main program using
    those DLL's. I want to achieve when I won't have to recompile main
    program and be able to add modules by dropping them into folder. Then
    my main program will know about them from DB.

    2. I want something like ActiveX.exe to execute those "plugins" in
    their own threads. And it will be ideal if main app won't crash in case
    one of the DLL's have bad code. We want DLL's to execute code in it's
    own memory space.

    Can you give me kewords, pointers on where/what to read on this topic?

    TIA!

  • sloan

    #2
    Re: "Late binding" in C#

    See my 12/1/2005 blog entry



    12/1/2005
    Understanding the Simple Factory Pattern

    And the "Reflection " example.





    "Katit" <idemkovitch@gm ail.comwrote in message
    news:1160402119 .489927.153670@ k70g2000cwa.goo glegroups.com.. .
    Hello,
    >
    I searched archives and all pointing to use of VB6 objects from C#
    >
    I want something different.
    >
    1. How can I build expandable platform? Let's say DLL's will have
    common set of methods (interface) and I will have main program using
    those DLL's. I want to achieve when I won't have to recompile main
    program and be able to add modules by dropping them into folder. Then
    my main program will know about them from DB.
    >
    2. I want something like ActiveX.exe to execute those "plugins" in
    their own threads. And it will be ideal if main app won't crash in case
    one of the DLL's have bad code. We want DLL's to execute code in it's
    own memory space.
    >
    Can you give me kewords, pointers on where/what to read on this topic?
    >
    TIA!
    >

    Comment

    • Chris Fulstow

      #3
      Re: &quot;Late binding&quot; in C#

      Check out AppDomains and the Activator class

      Katit wrote:
      Hello,
      >
      I searched archives and all pointing to use of VB6 objects from C#
      >
      I want something different.
      >
      1. How can I build expandable platform? Let's say DLL's will have
      common set of methods (interface) and I will have main program using
      those DLL's. I want to achieve when I won't have to recompile main
      program and be able to add modules by dropping them into folder. Then
      my main program will know about them from DB.
      >
      2. I want something like ActiveX.exe to execute those "plugins" in
      their own threads. And it will be ideal if main app won't crash in case
      one of the DLL's have bad code. We want DLL's to execute code in it's
      own memory space.
      >
      Can you give me kewords, pointers on where/what to read on this topic?
      >
      TIA!

      Comment

      Working...