Reference VB6.dll in VB.Net

S

savvaschr

Hello

I have a dll that was built in vb6 or vc++/6 and i have a problem when
i try to reference it in vb.net, I am getting an error "This is not a
valid assebly or Com componet" although is valid in vb6.

Can anyone help me please?
 
H

Herfried K. Wagner [MVP]

I have a dll that was built in vb6 or vc++/6 and i have a problem when
i try to reference it in vb.net, I am getting an error "This is not a
valid assebly or Com componet" although is valid in vb6.

This depends on the type of the DLL. If it has been created using VC++6
then it is maybe a standard DLL which only exports functions which you can
consume using the 'Declare' statement or the 'DllImport' attribute (see
documentation).
 

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

Top