HighTechTalks DotNet Forums  

Adding a reference to a COM object

Dotnet VSA microsoft.public.dotnet.vsa


Discuss Adding a reference to a COM object in the Dotnet VSA forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Adding a reference to a COM object - 02-18-2004 , 08:48 PM






How does one add a reference to a COM class using VSA. I don't see an
obvious method for making this happen. Is it an IVsaReferenceItem or
an IVsaGlobalItem?

Are there any convenient ways to browse for the COM component?

Scott.

Reply With Quote
  #2  
Old   
bruce barker
 
Posts: n/a

Default Re: Adding a reference to a COM object - 02-19-2004 , 12:12 PM






You have to create a com wrapper, there is a command line utiltity for this
(tlbimp). Then add a reference to the wrapper. If you need to talk to com
objects on the fly, then you will need to learn the com-interop library as
..net code can not call com objects directly.

Note: when you add a com object with VS, it runs the utiltiy for you, and
adds the reference.


-- bruce (sqlwork.com)


"Scott James" <sjames (AT) adi (DOT) com> wrote

Quote:
How does one add a reference to a COM class using VSA. I don't see an
obvious method for making this happen. Is it an IVsaReferenceItem or
an IVsaGlobalItem?

Are there any convenient ways to browse for the COM component?

Scott.



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.