您需要通过将COMVisibleAttribute设置为true
来将程序集标记为COM可见(如果只想公开一种类型,则在程序集级别或类级别)。
接下来,您使用以下命令进行注册:
regasm /prebase MyAssembly.dll
最后从VBscript调用它:
dim myObjSet myObj = CreateObject("MyNamespace.MyObject")
您需要通过将COMVisibleAttribute设置为true
来将程序集标记为COM可见(如果只想公开一种类型,则在程序集级别或类级别)。
接下来,您使用以下命令进行注册:
regasm /prebase MyAssembly.dll
最后从VBscript调用它:
dim myObjSet myObj = CreateObject("MyNamespace.MyObject")