.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

COMClass example

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
250 Views, 5 Replies

COMClass example

I am trying to write a .NET dll that I can call from my AutoCAD 2007 VBA
code.
I understand I need a special class to expose the .NET dll to COM. This
class is apparently a COMClass.
I have been unable to find "good" examples of this.
Is this a class named "COMClass"?

I also read that there are some other issues to deal with like exposing
properties, methods and events to COM.

Does anyone have an example they would share?

=Mark
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

Ok, let me re-phrase that.

What should I have read before I asked such a lame question?
Message 3 of 6
dmarcotte4
in reply to: Anonymous

Try this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/callcomcomp.asp

Dan
Message 4 of 6
Anonymous
in reply to: Anonymous

http://msdn.microsoft.com/netframework/programming/classlibraries/understandinginteroperability/

"Mark Johnston" wrote in message
news:5238322@discussion.autodesk.com...
I am trying to write a .NET dll that I can call from my AutoCAD 2007 VBA
code.
I understand I need a special class to expose the .NET dll to COM. This
class is apparently a COMClass.
I have been unable to find "good" examples of this.
Is this a class named "COMClass"?

I also read that there are some other issues to deal with like exposing
properties, methods and events to COM.

Does anyone have an example they would share?

=Mark
Message 5 of 6
Anonymous
in reply to: Anonymous

Dan,
That article is
Calling COM Components from .NET Clients
which is the opposite of what I want to do. I'm trying to call a .NET
component from a COM client.

=Mark
wrote in message news:5241033@discussion.autodesk.com...
Try this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/callcomcomp.asp

Dan
Message 6 of 6
jbooth
in reply to: Anonymous

Most of the information I used to learn COM interop was through the Visual Studio local help documentation.

This should help though: http://www.codeproject.com/vb/net/MusaExposingCOM.asp

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost