Plugins

M

Mike Hildner

I want to create an extensible app so I can just drop dlls into a "Plugins"
folder - more or less as described in
http://msdn.microsoft.com/msdnmag/issues/03/10/plug-ins/default.aspx but for
the Compact Framework.

I'm envisioning my "container" app to have a listview. The program would
load, find the plugins and populate the listview with the icon and text
defined by the plugins. Then when you tap an icon, that plugin would run.

But, lol, I'm a little lost on how to do, hoping someone will help me out.

I _think_ I understand the notion of searching a directory for classes that
implement an interface. But where do I go from there? For starters, I guess
I would do an Activator.CreateInstance to create the plugin object, retrieve
an icon a text for my container's listview, then somehow create the plugin's
form when the listview item is clicked?

Am I on the right track?

TIA,
Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top