在VBScript中访问自定义.NET DLL [英] Access a custom .NET DLL in VBScript
本文介绍了在VBScript中访问自定义.NET DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法指向DLL并创建一个实例?
解决方案
您可以使用 regasm utility 通过指定 / codebase
参数。不鼓励此参数与未签名的程序集一起使用,但是当您无法将程序集放入GAC时,该参数将起作用。
regasm your。 dll / codebase
请注意,此操作后不要更改.dll的路径,因为它插入此路径进入Windows注册表。
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 instance of it?
解决方案
You can register that .NET dll with regasm utility by specifying /codebase
parameter. This parameter is not encouraged to use with unsigned assemblies but it works when you can not put your assembly into GAC.
regasm your.dll /codebase
Please note that you should not change your .dll's path after this operation since it inserts this path into the Windows registry.
这篇关于在VBScript中访问自定义.NET DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文