Importing DLLs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everybody... my problem is: Well I want to make an app, that you the
user could add some plugins (DLLs)... this plugins can contains classes that
inherit from one class in my app, of course the user will only have the app
in binary, not source code. Well, in C++ I know this could be made... but i
need an idea in C#

Please can you, send me some advices ???

Thnx in advantage !!!
 
Hector,

What you should do is take the classes that you want available to the
plug ins, and place them in a separate assembly. Then, you can reference
the assembly from your program, and from your plug ins as well.

Hope this helps.
 
Firstly, thanx... I think in that, but I need to know in runtime, if this
plugins have been added, and what are this plugins,... a other things...

Please tell me a little more...

thanx in advantage
--
"The best way to predict the future, is to invent it"


Nicholas Paldino said:
Hector,

What you should do is take the classes that you want available to the
plug ins, and place them in a separate assembly. Then, you can reference
the assembly from your program, and from your plug ins as well.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hector Y. Martinez said:
Hi everybody... my problem is: Well I want to make an app, that you the
user could add some plugins (DLLs)... this plugins can contains classes
that
inherit from one class in my app, of course the user will only have the
app
in binary, not source code. Well, in C++ I know this could be made... but
i
need an idea in C#

Please can you, send me some advices ???

Thnx in advantage !!!
 
Hector... You can define an interface and create plugins in a separate
dll that
implement the interface and place the dll in a plugins folder. At
runtime, load
the classes that implement the interface using reflection. .Net 2.0
supports
loading plugins into a low trust environment.

http://www.geocities.com/Jeff_Louie/OOP/oop13.htm

Regards,
Jeff
 
Back
Top