473,394 Members | 4,011 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,394 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 1187
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.