Making a DLL COM accessible

后端 未结 4 622
轻奢々
轻奢々 2020-12-11 17:12

I have a class library written in .Net that I would like to make available to VB6/VBA. What I tried did not work (obviously as I am asking this question). Here is what I did

4条回答
  •  情话喂你
    2020-12-11 17:57

    Step #6 is wrong. .NET assemblies with [ComVisible] types are registered with Regasm.exe. Use the /codebase command line option if you don't want to install the DLL into the GAC. The /tlb command line option creates the type library, you can use that in your VB6 project.

提交回复
热议问题