HighTechTalks DotNet Forums  

Load a COM component dinamically

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Load a COM component dinamically in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?Um9nZXIgVHJhbmNoZXo=?=
 
Posts: n/a

Default Load a COM component dinamically - 06-08-2007 , 12:56 PM






Hello,

One of our enterprise applications must have a reference to a tlb file that
exposes methods from a COM component residing on our local network.

Not all the users of that application will have to use the functionality of
that COM component, thus, it will be no necessary to load always that COM
component. In fact, not all the users have access to the network share where
this component resides.

My question is, How can I dinamically load a COM component ? I know I can do
it with NET assemblies or wrapped COM assemblies, but I need to do it
directly from that TLB /DLL file on the network as the file is inlaid with
software LICENSES to it (strange but true).

Thanks in advance,

--
Roger Tranchez
MCTS
..NET 2005 and DB developer

Reply With Quote
  #2  
Old   
Ben Voigt [C++ MVP]
 
Posts: n/a

Default Re: Load a COM component dinamically - 06-09-2007 , 01:42 PM







"Roger Tranchez" <run1789 (AT) community (DOT) nospam> wrote

Quote:
Hello,

One of our enterprise applications must have a reference to a tlb file
that
exposes methods from a COM component residing on our local network.

Not all the users of that application will have to use the functionality
of
that COM component, thus, it will be no necessary to load always that COM
component. In fact, not all the users have access to the network share
where
this component resides.

My question is, How can I dinamically load a COM component ? I know I can
do
it with NET assemblies or wrapped COM assemblies, but I need to do it
directly from that TLB /DLL file on the network as the file is inlaid
with
software LICENSES to it (strange but true).
Not at all strange. You haven't got a development license for the COM
component, apparently, but you have a license for another control or
component that uses that component internally. You should only use the
component you have a license for.

If you do have a development license for the component, you will need to use
the Visual Studio support to embed a runtime license into your application.
Since you don't want that component always used, create a class library
(assembly/dll) that has an ActiveX reference to the component and the right
license, put the code for creating the component there, then dynamically
load that .NET assembly in the usual way.

Quote:
Thanks in advance,

--
Roger Tranchez
MCTS
.NET 2005 and DB developer


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.