如何创建一个DLL文件? [英] How to create a dll file?

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

问题描述

如果我写一个VB脚本,我该如何创建该脚本的dll文件


谢谢

解决方案

你好Roy,


你试过可以在VB.net的正确来源中设置它(在大多数情况下是什么情况

非常不同并且非常有限制)并且比编译它。


你不直接需要Visual.Studio.Net或VB.Net标准,虽然我

建议它做有了它。


如果没有它可能会有很多工作,可能你不会成功,

,因为使用这个编译器编译是非常复杂的,如果你这样做不知道是什么

是关于一切的东西,而在Visual Studio Net中几乎是

自动


但是在链接下vb.net编译器的说明。

http://msdn.microsoft.com /library/de...leroptions.asp


但是你可以尝试在同一个网站上找到代码样本,看看你是否b
让它工作。


我希望这有帮助吗?


Cor


* =?Utf-8?B?Um95?=< an ******* @ discussion.microsoft.com> scripsit:

如果我写一个VB脚本,我该如何创建该脚本的dll文件?




你不能。您可以尝试将代码放入VB6 ActiveX DLL项目

并编译它,但是你不能用VB.NET这样做。


-

Herfried K. Wagner [MVP]

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


>你不能。您可以尝试将代码放入VB6 ActiveX DLL项目

并进行编译,但是您无法使用VB.NET。




????


我认为完全错误的是VB脚本无需一次更改

使用option strict和option进行构建在我看来是明确的。


Cor


If i write a VB script, how can i create a dll file of that script

Thanks

解决方案

Hi Roy,

You try can set it in the right source of VB.net (what is in a most of cases
very different and very restrictive) and than compile it.

You do not direct need Visual.Studio.Net or VB.Net standard although I
advise it to do with that.

Without that it can be a lot of work and probably you will not succeed,
because compiling with this compiler is very complex if you do not know what
is ment with everything, while that goes in Visual Studio Net almost
automaticly

However beneath a link to the instructions for the vb.net compiler.

http://msdn.microsoft.com/library/de...leroptions.asp

However you can try to find on this same website code samples and see if you
get it working.

I hope this helps?

Cor


* =?Utf-8?B?Um95?= <an*******@discussions.microsoft.com> scripsit:

If i write a VB script, how can i create a dll file of that script?



You can''t. You can try to put the code into a VB6 ActiveX DLL project
and compile it, but you can''t do that with VB.NET.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


> You can''t. You can try to put the code into a VB6 ActiveX DLL project

and compile it, but you can''t do that with VB.NET.



????

I think that is totally wrong there are VB scripts which need not one change
to build with option strict and option explicit off in my opinion.

Cor


这篇关于如何创建一个DLL文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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