Calling a VB6 method from a .NET DLL

混江龙づ霸主 提交于 2020-01-09 08:08:19

问题


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 for this? Any thoughts?


回答1:


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.



来源:https://stackoverflow.com/questions/617846/calling-a-vb6-method-from-a-net-dll

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!