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
 

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

Back
Top