Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Respected sir/s,

i have two dll files which are developed into VB6.0 and Delphi 7.
I want to use those dll into my windows project(VB.net 3.5)

I did following steps for that..

project --> references --> Add References --> Browse --> add selected dll

I got following error every time.

"A reference to D:\abc\test.dll could not be added. Please make sure that the file is accessible and that is valid assembly or COM "

How to use those file into my current vb.net project?

Thank you,
Posted
Comments
MayurDighe 19-May-14 5:55am    
Can you provide the link for those DLL files...???

I will try to get it done...

Happy Programming...:-)

1 solution

Have you registered the dlls? If they are not registered you will not able to access their functions.

I cannot speak for the Delphi libraries as I have no experience there but you should be able to access the VB6 dlls using interop.

Chapter 9 of this free book from Microsoft should help you. http://msdn.microsoft.com/en-us/vstudio/ms788236[^]

I know this is not a copy this code into your project answer, but going through the material should go a long way in providing the solution you seek and more.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900