473,395 Members | 1,595 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,395 software developers and data experts.

Best way to write C++/.NET Plugins ?

Hi,

there are some ways to write a plugin with C++/.NET.

- DLL
- COM
- ....

What do you think is the best (most easiest ?) way to write plugins ?
Thanks,

Howie

Nov 16 '05 #1
1 1429
Howie (remove _) wrote:
there are some ways to write a plugin with C++/.NET.

- DLL
- COM
- ....

What do you think is the best (most easiest ?) way to write plugins ?


Make an assembly which only contains an Interface definition:

public interface MyPlugInInterface
{
string TestProperty{ get; set; }
// ... and so on...
event ...
functions...
}

Now all Plugins must inherit from this interface.
Your Host-Application can now simple instanciate (Activator.CreateInstance)
any plugin which has this interface. For instanciation you only need the
filename of the plugin-assembly and the name of the class which implements
this interface.

--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Buster | last post by:
Hi, im about to start learning how to program in JAVA 2 and was wondering what software i should buy to learn the language. I have downloaded the software development kit 1.4 but find the DOS...
0
by: Miguel De Anda | last post by:
I'm writing a small program that I will write plugins for but I was wondering what are the best methods of doing that. I've looked online and couldn't find anything useful. I basically want it...
4
by: gamaron | last post by:
Summary --------- I'm looking for a C++ IDE. If I'm going to learn something, I prefer it to be free-of-charge (preferably and open-source base), extensible (read: language independent,...
5
by: Christoph Haas | last post by:
Dear coders... I'm working on an application that is supposed to support "plugins". The idea is to use the plugins as packages like this: Plugins/ __init__.py Plugin1.py Plugin2.py...
0
by: David Levine | last post by:
This is a lengthy post; please bear with me... This will be a large system with dozens of plugins. In addition to plugins developed internally there will be 3rd parties that will write their own...
0
by: Thibaut | last post by:
Hi, What are the recommended practices on how to use the __crt_dll_initialize() and __crt_dll_terminate() calls described at http://support.microsoft.com/?id=814472 in order to circumvent the...
18
by: stylecomputers | last post by:
Hi All, What do you find the best IDE for creating web applications in Python is? Preferably FOS IDE. Cheers
8
by: Flavio | last post by:
Hi, Nowadays the addition of functionality to programs by means of plugins is very frequent. I want to know the opinions of experienced Python developers about the best practices when it...
0
by: BigFrank | last post by:
Hi, I've written a COM+ server in C# (VS 2005) which I can successfully use in both delphi and c# windows applications. However, I also have a c# windows application which has a plugin...
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:
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.