PC Review


Reply
Thread Tools Rate Thread

COM interop q

 
 
Frank Rizzo
Guest
Posts: n/a
 
      22nd Feb 2004
I am using a .net library from VB6.
So I do
regasm mylib.dll /tlb:mylib.tlb
to make it available to COM clients. As I understand, the command
actually generates a new .TLB file everytime you run the command.

So when I do REGASM, what actually gets registered: the DLL or the TLB?

In addition, when I deploy my VB6 app, I would copy mylib.dll and
mylib.tlb to the target PC. Would I need to run the REGASM command
again or can I simply register the existing .TLB file? If I can just
register the .TLB file, how can I do so? REGSVR32 does not seem to work
with the .TLB file.

Thanks
Frank
 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      22nd Feb 2004
Frank,

>So when I do REGASM, what actually gets registered: the DLL or the TLB?


Both


>Would I need to run the REGASM command
>again or can I simply register the existing .TLB file?


Yes you need to run Regasm on the target machine, or have a setup
package that handles the registration.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
Frank Rizzo
Guest
Posts: n/a
 
      22nd Feb 2004
Mattias Sjögren wrote:
> Frank,
>
>>Would I need to run the REGASM command
>>again or can I simply register the existing .TLB file?

>
> Yes you need to run Regasm on the target machine, or have a setup
> package that handles the registration.


So, are you saying that I don't actually need to distribute the .TLB
file since I have to run RegAsm on the target machine anyway (which will
recreate the .tlb file)?

Thanks
Frank
 
Reply With Quote
 
Mattias Sjögren
Guest
Posts: n/a
 
      23rd Feb 2004
Frank,

>So, are you saying that I don't actually need to distribute the .TLB
>file since I have to run RegAsm on the target machine anyway (which will
>recreate the .tlb file)?


No, you don't necessarily have to distribute the TLB.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
Frank Rizzo
Guest
Posts: n/a
 
      23rd Feb 2004
Mattias Sjögren wrote:
> Frank,
>
>
>>So, are you saying that I don't actually need to distribute the .TLB
>>file since I have to run RegAsm on the target machine anyway (which will
>>recreate the .tlb file)?

>
>
> No, you don't necessarily have to distribute the TLB.
>


Thank you.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interop.CDO uses Interop.ADODB which has a higher version... muriwai Microsoft C# .NET 7 27th Oct 2011 08:00 PM
Interop Ira Davis Microsoft Dot NET 1 29th Oct 2008 09:46 PM
Using .NET 1.1 via interop from .Net 2.0 schaf Microsoft C# .NET 0 9th Jun 2008 12:07 PM
Is there a published COM Interop Wrapper for Interop.MSDASC.dll? Burton G. Wilkins Microsoft ADO .NET 0 10th Nov 2003 01:57 AM
COM Interop Abhi Microsoft C# .NET 1 25th Sep 2003 08:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:23 PM.