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

  • Thread starter Thread starter Howie (remove _)
  • Start date Start date
H

Howie (remove _)

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
 
Howie said:
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
 
Back
Top