DLL在运行时 [英] DLL During run time

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

问题描述

伙计我需要指导,


我有一个xml转换器,它使用dll进行引用。出于测试目的。

现在,我的问题是,我可以在运行时在vb 6.0上引用dll文件吗?因此,当我们尝试转换为xml时,我们不必停止该程序 - >重新编码 - > - >开始。


提前致谢。

Guys i need guidance,

I have an xml converter which uses dll to be referenced upon. For testing purposes.
Now, my question is, can i reference a dll file on vb 6.0 during runtime? So that when we try to convert to xml we don''t have to stop the program -> recode -> ->start.

Thanks in advance.

推荐答案

设置dllname = New SkillsManager

SkillsManager是DLL文件的名称。


如何在运行时创建这样的语句?我的意思是,我怎么能执行这样的声明,让我们说我想用另一个dll取代技能管理员,而不必在设计视图中重新编码。鉴于所有的DLL都被引用。


谢谢。
Set dllname = New SkillsManager

SkillsManager is the name of the DLL file.

How can i make a statement like this during runtime? I mean, how can i execute a statement like this where let''s say i''d like to replace skillsmanager with another dll without having to recode again in design view. Given that all the DLLs are referenced.

Thanks.


更新:


我搜索和试图应用这个:


a ="设置dllname = New SkillsManager"

调用ScriptControl1.ExecuteStatement(a)


但我得到一个错误,上面写着Class not defined:SkillsManager


任何可以提供帮助的人?

i会非常感激。
UPDATE:

I search and tried to apply this:

a = "Set dllname = New SkillsManager"
Call ScriptControl1.ExecuteStatement(a)

But i''m getting an error saying, "Class not defined: SkillsManager"

Anybody who could help?
i would greatly appreciate it.


您好,


您可以使用晚期绑定对象:

Hi,

You can use Late Binding of the objects:

展开 | 选择 | Wrap | 行号


这篇关于DLL在运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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