从外部DLL创建实例 [英] Create Instance from external DLL

查看:47
本文介绍了从外部DLL创建实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


请帮助以下案例:

如何从DLL文件加载程序集并创建实例
$ b $加载文件中的类的b。


我想创建一个获取2个字符串参数的函数

(汇编文件名和类名)并创建一个实例。


谢谢


Quick Fox

Hi All,

Please help for following case:
How to Load a Assembly from DLL file and create instance
of the class in the loaded file.

I want make a function that get 2 string parameters
(Assembly file Name and Class Name) and create a instance.

Thanks

Quick Fox

推荐答案

*快速狐狸 <曲******** @ hotmail.com> scripsit:
* "Quick Fox" <qu********@hotmail.com> scripsit:
如何从DLL文件加载程序集并在加载的文件中创建类的实例。

我想创建一个获取2个字符串的函数参数
(程序集文件名和类名)并创建一个实例。
How to Load a Assembly from DLL file and create instance
of the class in the loaded file.

I want make a function that get 2 string parameters
(Assembly file Name and Class Name) and create a instance.




< http://www.mvps.org/dotnet/dotnet/ samples / codingtechnique />

- > PlugIns


-

Herfried K. Wagner

MVP·VB Classic,VB.NET

< http://www.mvps.org/dotnet>



<http://www.mvps.org/dotnet/dotnet/samples/codingtechnique/>
-> "PlugIns"

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


Hi Herfried,


Es ist auf Deutsch。 Die Leute hier kann nicht verstehen Deutsch(对于

大部分)。


很有可能他们只看一眼,说什么

F * ck ?? !!,继续前进。


您怎么看?


问候,

Fergus
Hi Herfried,

Es ist auf Deutsch. Die Leute hier kann nicht verstehen Deutsch (for the
most part).

The chances are pretty high that they''ll take one look, say "What the
F*ck??!!", and move on.

What do you think?

Regards,
Fergus


嗨Fergus,

这条消息是什么意思?

Cor
Hi Fergus,
And what is the meaning of this message?
Cor


这篇关于从外部DLL创建实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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