471,310 Members | 968 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Importing DLLs


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 !!!

--
"The best way to predict the future, is to invent it"
Dec 8 '05 #1
3 1135
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]
- mv*@spam.guard.caspershouse.com

"Hector Y. Martinez" <He*************@discussions.microsoft.com> wrote in
message news:14**********************************@microsof t.com...

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 !!!

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

Dec 8 '05 #2

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 [.NET/C# MVP]" wrote:
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]
- mv*@spam.guard.caspershouse.com

"Hector Y. Martinez" <He*************@discussions.microsoft.com> wrote in
message news:14**********************************@microsof t.com...

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 !!!

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


Dec 8 '05 #3
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

*** Sent via Developersdex http://www.developersdex.com ***
Dec 9 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Rick Olson | last post: by
reply views Thread by David Hughes | last post: by
reply views Thread by Tian | last post: by
4 posts views Thread by Steve | last post: by
29 posts views Thread by Natan | last post: by
3 posts views Thread by normanchong | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.