Home All Groups Group Topic Archive Search About
Author
12 Mar 2007 6:22 AM
Shilpa
Hi All,

I am creating an add-in for some third party tools A and B.
The add-in has a single GUI that is used in both A and B. The add-in
is build by referencing dlls from A and B.
The problem is, When I run this add-in on a client machine, both
softwares A and B have to be installed. Otherwise, the add-in gives an
ugly error saying it could not find the referenced dlls.
Is there a way programmatically to load these dlls when necessary and
work with them without adding them as reference during coding?

Regards,
Shilpa

Author
13 Mar 2007 1:29 PM
Laurent Bugnion [MVP]
Hi,

Shilpa wrote:
> Hi All,
>
> I am creating an add-in for some third party tools A and B.
> The add-in has a single GUI that is used in both A and B. The add-in
> is build by referencing dlls from A and B.
> The problem is, When I run this add-in on a client machine, both
> softwares A and B have to be installed. Otherwise, the add-in gives an
> ugly error saying it could not find the referenced dlls.
> Is there a way programmatically to load these dlls when necessary and
> work with them without adding them as reference during coding?
>
> Regards,
> Shilpa

Yes, see here:
http://geekswithblogs.net/lbugnion/archive/2007/03/07/108214.aspx

This same technique can be used for WinForms applications too.

Greetings,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

AddThis Social Bookmark Button