COM Objects

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
When I add "A reference" to 'dll' file, I got the following error message
"A reference to 'xxx.dll' file could not be added. This is not a valid assembly or COM component. ...
This happens at VB .Net project. The DLL file was made at VB 6, and I don't have the source code
What should be done to solve this problem
Thank yo
 
Hi

I suggest you try to include the [DllImport] in your .NET code when you are trying to reference a COM dll created in VB 6
You can see the MSDN help or .NET documentation for the syntax of using the [DllImport] tag

Regards

----- Dudi Nissan wrote: ----

Hello
When I add "A reference" to 'dll' file, I got the following error message
"A reference to 'xxx.dll' file could not be added. This is not a valid assembly or COM component. ...
This happens at VB .Net project. The DLL file was made at VB 6, and I don't have the source code
What should be done to solve this problem
Thank yo
 
Back
Top