PC Review


Reply
Thread Tools Rate Thread

COM Component

 
 
Plantex
Guest
Posts: n/a
 
      30th Dec 2003
Hello,

I have a DLL, created by VS .Net and written in C#.
I would like to create a COM component from this dll, 'cause I'd like
to call this component from a MSMQ Trigger...

How could I create create this COM component from the DLL?

Thank you

Plantex
 
Reply With Quote
 
 
 
 
mYsZa
Guest
Posts: n/a
 
      30th Dec 2003
Plantex wrote:
> I have a DLL, created by VS .Net and written in C#.
> I would like to create a COM component from this dll, 'cause I'd like
> to call this component from a MSMQ Trigger...
> How could I create create this COM component from the DLL?


Hi!
All classes defined as public in .NET are visible to COM by default. You may
change this
using ComVisibleAttribute.
To make the component visible by the COM clients you have to register it
using regasm tool.
This adds some entries to the windows registry and makes your component
visible as a COM.
To have an ability to use the component from non managed code (e.g. C++),
you need to create
a type library from your class library using tlbexp tool.
Then after importing the type library to unmanaged code usign the #import
directive you may
freely use the library as it is a COM library.

hope this helps
--
mYsZa
drescore (at) o2 (dot) pl

 
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
The system has called a custom component and that component has failed and generated an exception. lil_miss_sassy_girl@yahoo.com Microsoft Windows 2000 Developer 0 31st Jan 2005 05:23 PM
error 1109: component: 'session manager requires an additional enabled component not in the current configuration msnews.microsoft.com Windows XP Customization 1 14th May 2004 05:23 PM
error 1109: component: 'session manager requires an additional enabled component not in the current configuration msnews.microsoft.com Windows XP Basics 1 14th May 2004 05:23 PM
error 1109: component: 'session manager requires an additional enabled component not in the current configuration msnews.microsoft.com Windows XP Embedded 1 14th May 2004 05:23 PM
Finding a Component's (ComponentModel.Component) Parent Form JackRazz Microsoft VB .NET 3 4th Mar 2004 10:22 PM


Features
 

Advertising
 

Newsgroups
 


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