.NET Object from VB6 without use of regasm.exe?

后端 未结 4 708
醉话见心
醉话见心 2020-12-16 07:20

The software company I\'m working for builds software for schools, and so our client machines are usually locked down in such a way it makes it pretty impossible for us to i

4条回答
  •  無奈伤痛
    2020-12-16 07:50

    you say you can't install anything, but could you write the necessary stuff into the registry yourself? I think that all regasm does is write all some stuff to the registry, so you could effectively do that from your VB code on startup if its not there and then you might be able to load the interop assembly.

    you can use a tool like process monitor to see what gets written to the registry when you run regasm.

    I'd make sure you are using the -codebase switch and explicitly defining Guids for your interfaces and classes for the com wrappers as well. not doing so caused me no end of issues trying to get com wrapped .net dlls to work properly

提交回复
热议问题