Switch between several DLL

  • Thread starter Thread starter Romain TAILLANDIER
  • Start date Start date
R

Romain TAILLANDIER

Hi group !

I have some devices, wich are from differents marks, sold with differents
API, but all supposed to have globally the same functionnalities.
I want to be able to select the device used (with a combobox for example),
during the application.

So I will create as much as DLL for the differents possible configurations,
with all the same entry point, to became independant of the selected device.

My question is, how can i change the used dll during the application ?

am I clear ??

If you have ideas, you are welcom :)
thanks
ROM
 
Romain,
My question is, how can i change the used dll during the application ?
If I follow you question in that you have 1 of N assemblies you want to use,
where all N assemblies provide similar functionality.

I would recommend the Plugin pattern:
http://www.martinfowler.com/eaaCatalog/plugin.html

Generally its a good idea to implement the Plugin Pattern with the Separated
Interface Pattern.
http://www.martinfowler.com/eaaCatalog/separatedInterface.html

For pointers on implementing the Plug In pattern in .NET see:
http://www.yoda.arachsys.com/csharp/plugin.html

Hope this helps
Jay
 
Back
Top