473,385 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 1185
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rick Olson | last post by:
I'm trying to add a Tkinter interface to an existing C program with embedded python, but seem to have trouble importing Tkinter (or accessing it). I tried a simple program that would run the...
0
by: David Hughes | last post by:
Sometime in 1998, Mark Hammond wrote: >> import win32api >>ImportError: DLL load failed: One of the library files needed to run >>this application cannot be found. >Your system needs its...
0
by: Tian | last post by:
I am trying to use pyFMOD, I have installed all other supporting libraries (hopefully), such as ctypes, numarray, I also installed FMOD itself and copied its DLL files to python/DLLs. When I try to...
5
by: Howard Kaikow | last post by:
I have files to build a C project, including the makefile, what's the easiest way to import the project into C and C# in VS .NET Professional? I have both VS .NET 2002 and 2003. I have nothing...
4
by: Steve | last post by:
First attempt at importing a DLL Here is my class <code> public class TIGangProg { public TIGangProg(){} public static extern int InitCom(string lpszComPort, int IBaudRate);
1
by: Anna | last post by:
Hi, I'm using VS.NET 2003 on Win2000 (SP3). I am trying to import a dll developed in VC++6.0 into my VC.net project. I keep getting linker errors complaining about GetThisClass and...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
29
by: Natan | last post by:
When you create and aspx page, this is generated by default: using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using...
3
by: normanchong | last post by:
Hi, I'm currently developing an application for checking and doing some configurations for another application. During those checks, I have to access SQLServer to get configuration-info like...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.