PC Review


Reply
Thread Tools Rate Thread

C# project with 'Register for COM Interop' set to true

 
 
Jo
Guest
Posts: n/a
 
      3rd May 2007
Hi all,

I have a dll written in C#. I need this dll being called by some un-managed
dll or app through COM.

My question is, do I have to set 'Register for COM Interop' set to true in
the project settings?

If you can point some articles about this that will be helpful also.

TIA,

Jo


 
Reply With Quote
 
 
 
 
Alberto Poblacion
Guest
Posts: n/a
 
      3rd May 2007
"Jo" <(E-Mail Removed)> wrote in message
news:O%(E-Mail Removed)...
> I have a dll written in C#. I need this dll being called by some
> un-managed dll or app through COM.
>
> My question is, do I have to set 'Register for COM Interop' set to true in
> the project settings?


That's the easiest way to make your dll callable from COM clients.
If you don't want Visual Studio to do all the work for you, an
alternative way to make your dll accessible to COM is to use the TLBEXP.exe
program (Type Library Exporter) to create a .tlb from your .dll. This .tlb
can then be used to add a reference from COM consumers. You will also need
to register your dll in the Windows Registry using REGASM, because regsvr32
does not operate on .Net dlls. You can also use the /tlb option of regasm to
produce the same effect of running tlbexp.



 
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
Register for COM interop 64 bit problem Yoavo Microsoft C# .NET 1 26th Jun 2009 09:58 PM
Register DLL for COM interop and use it in ASP Nicke Microsoft VB .NET 2 10th May 2006 02:02 PM
Register DLL for COM interop =?Utf-8?B?UGhpbGlwIFdhZ2VuYWFy?= Microsoft VB .NET 4 24th Apr 2006 12:43 PM
Register for Com Interop William Gower Microsoft Dot NET Framework 0 11th May 2004 02:40 AM
How to Register COM Interop? davidw Microsoft Dot NET 2 28th Aug 2003 11:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:28 PM.