Reference VB6.dll in VB.Net

  • Thread starter Thread starter savvaschr
  • Start date Start date
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?
 
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).
 
Back
Top