1

I'm work in an aplication that need be capable of support plugins, but i dont know how this work.

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
Agusti-N
  • 3,956
  • 10
  • 40
  • 47

3 Answers3

5

See Design Pattern for implementing plugins in your application?
The answers tend to get very platform specific. It also depends on how much control of your core app data and logic the plugin must have.

The C++ QT4 book has a good description of adding a file-type plugin to it's architecture, there area also a bunch of modeling apps (openscenegraph, blender, povray ) that have good documentation for their plugin architectures.

Community
  • 1
  • 1
Martin Beckett
  • 94,801
  • 28
  • 188
  • 263
1

You need to design your application's API in such a way that plugins can be created, and you need to add the necessary plugin management interfaces and supporting code to invoke the plugins. There is no catch-all way of managing plugins.

Welbog
  • 59,154
  • 9
  • 110
  • 123
0

Take a look at the open source application called Rawr (c#). Each addin is a seperate .dll and the main app uses reflection to access the code. Very nicely done.

www.codeplex.com/Rawr

Inisheer
  • 20,376
  • 9
  • 50
  • 82