.Net DLL vs Excel VBA

G

Grumpy Aero Guy

I have created a simple dll via a class project in VB.Net with a few
(trivial) properties and methods.

I create/build the DLL....NO PROBLEM.

I try to set reference to this DLL via Excel 2003, and recieve an error
message indicating that this type of library is "not supported", or
something to that effect.....


(any ideas why? / am i missing something / is this a bonehead moment ? )

The same exercise using a VB6 generated DLL works problem free....
 
H

Herfried K. Wagner [MVP]

* "Grumpy Aero Guy said:
I have created a simple dll via a class project in VB.Net with a few
(trivial) properties and methods.

I create/build the DLL....NO PROBLEM.

I try to set reference to this DLL via Excel 2003, and recieve an error
message indicating that this type of library is "not supported", or
something to that effect.....

Are you sure you checked the option "Register for COM interop" in the
project properties? Have a look at the 'ComVisibleAttribute' and the
'ComClassAttribute' in the docs too.
 
G

Grumpy Aero Guy

I'm not sure I did ANY of that, but you've given me a place to start
looking....Thank you for your time.

--


Frank Bachman
(Grumpy Aero Guy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VB.Net created DLL vs Excel 2003 1
reference dll 3
Problems with com dll 2
dll path 7
Using local dll - references 6
EXE vs DLL Creation 6
Readonly DLL? 1
DLL Question. 11

Top