Calling a VB6 method from a .NET DLL

后端 未结 1 1575
感情败类
感情败类 2020-12-07 02:08

I have a DLL written in VB 6 and another DLL written in Visual Studio 2005 (VB.NET).

Now I want to invoke the method of the VB DLL from my .NET DLL. What should I do

相关标签:
1条回答
  • 2020-12-07 02:48

    As VB6 creates COM DLLs, Visual Studio should have no problems generating an interop stub for you. Simply add a reference to the VB6 DLL from your .NET project by selecting Add Reference in Visual Studio and finding your DLL under the COM tab. Make sure the VB6 DLL is registered on your machine before you do this.

    0 讨论(0)
提交回复
热议问题