脚本引擎内部的交叉引用脚本 [英] Cross Referencing Scripts inside Scripting Engine

查看:80
本文介绍了脚本引擎内部的交叉引用脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个环境,其中有两个实现IActiveScript接口的不同COM对象,并且它们获得IDispatch作为对放置脚本的站点的引用.

现在,我想从另一个脚本中引用一个脚本的功能(这两个脚本都在脚本引擎内部,但加载在不同的站点中),有可能吗?它如何工作以及如何实现?

谢谢

I have an environment where there are two different COM objects which implement IActiveScript interface and they get IDispatch as reference to the site where the scripts are placed.

Now, I want to refer to a function of one script from inside another Script(both Scripts are inside the Scripting Engine but loaded in different sites), is it possible ? How will it work and How to implement it?

Thanks

推荐答案

如果要创建VBScript COM对象,您已经阅读了有关活动脚本组件的信息.您将必须创建具有特殊格式和扩展名的XML文档,并在regsvr32中进行注册.
If you want to create VBScript COM Object, you have read about Active Script Components. You will have to create an XML document with special format and extension and register it with regsvr32.


这篇关于脚本引擎内部的交叉引用脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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