访问自定义.NET的DLL在VBScript [英] Access a custom .NET DLL in VBScript

查看:190
本文介绍了访问自定义.NET的DLL在VBScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了.NET一个DLL,我想访问它在VBScript。我不希望将其添加到组件目录。

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.

有没有办法来点过的DLL,并创建它的一个实例?

Is there a way to point too the DLL and create an instance of it?

推荐答案

您可以注册.NET的DLL带的 regasm工具通过指定 / codeBase的参数的。此参数是不鼓励使用未签名的组件使用,但它的工作原理,当你不能把你的组件放入GAC。

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

请注意,你不应该这样操作之后,因为它插入这条路径在Windows注册表中更改您的.dll的路径。

Please note that you should not change your .dll's path after this operation since it inserts this path into the Windows registry.

这篇关于访问自定义.NET的DLL在VBScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆