I getting error on calling DLL that was made in VC++ 6 from my vb.net application . i am right clicking on the project in Solution explorer, and trying to add a reference. In the reference window,
under the browse tab, i try to add a reference to my dll. I have also copied that dll into the project directory.
But when i select the dll and click on ok i get a message box saying"A reference to the dll could not be added.
Make sure the file is accessible, and it is a valid assembly or COM component"
I think the dll is native dll.Then how i use pinvoke to access the functions
in it.The dll was made in VC++ 6.0.The name of the DLL is MyDll.dll and its function name is SayHello() which returns the string value.
Any help.
under the browse tab, i try to add a reference to my dll. I have also copied that dll into the project directory.
But when i select the dll and click on ok i get a message box saying"A reference to the dll could not be added.
Make sure the file is accessible, and it is a valid assembly or COM component"
I think the dll is native dll.Then how i use pinvoke to access the functions
in it.The dll was made in VC++ 6.0.The name of the DLL is MyDll.dll and its function name is SayHello() which returns the string value.
Any help.
Comment