Using DLLs in VBScript

后端 未结 3 579
悲&欢浪女
悲&欢浪女 2020-12-08 06:04

I\'ve compiled C# code into a DLL, but have little experience with them. My C# code contains a class HelloWorld with a static method Print(). I\'d

3条回答
  •  盖世英雄少女心
    2020-12-08 06:14

    I think you might be looking for Registration-Free COM. This SO answer regarding the Microsoft.Windows.ActCtx should help specifically for VBScript.

    Keep in mind that COM doesn't support static methods, so you'll have to make your Print method into an instance method.

提交回复
热议问题