Access a custom .NET DLL in VBScript

前端 未结 5 1049
耶瑟儿~
耶瑟儿~ 2020-12-14 13:09

I wrote a DLL in .NET and I want to access it in VBScript. I don\'t want to add it to the assembly directory.

Is there a way to point too the DLL and create an inst

5条回答
  •  星月不相逢
    2020-12-14 13:41

    Not directly. You'll need a COM Callable Wrapper to any .NET library you'll calling from COM (and hence, VBScript). Therefore, you should either directly create a CCW to the DLL or you can create a CCW for a proxy DLL which provides generic methods to load a .NET DLL and provide methods for you that call the actual methods on the component and return the result. It's really not clean at all. So, in general, the answer is no.

提交回复
热议问题