为什么我们制作一个dll文件 [英] Why we make a dll file

查看:77
本文介绍了为什么我们制作一个dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友.

我从VB.Net 2008开始工作了两年.我有一个严重的困惑.我想知道为什么我们要在单独的DLL文件中编写类和函数等,然后在EXE中使用它,而我们也可以在EXE文件中编写这些类和函数.
能不能请一个简短的回答给我我的问题.

等待答案.

解决方案

重复使用.您可以在可执行文件,Matlab,Excel,统计软件包等中使用dll.您不必将代码放在几个不同的exe中.然后,如果出于任何原因需要更改该代码,则只需更改一次,然后刷新dll.例如,我公司有一个包含一堆计算器的dll.我们有几个不同的网站和一个PC程序,它们都使用相同的计算方法.因此,不是将代码放在每个网站和PC程序的exe中,而是将其存储在dll中,每个网站和pc程序都将其引用.


检查.


Dear Friends.

I am working in VB.Net 2008 from two years. I have a serious confusion. I want to know that why we write classes and functions etc in a separate DLL file and then use it in our EXE, while we can write these classes and functions also in our EXE file.
Can some one Plz give me a brief answer of my question.

Waiting for Answer.

解决方案

Reuse. You can use dll''s in executables, Matlab, Excel, Statistical packages, ....


You put stuff in a dll that you might want to reuse in several other places so that you don''t have to put that code in several different exe. Then if that code needs to be changed for any reason you only have to change it once and then refresh the dll. For example, my company has a dll that contains a bunch of calculators. We have a couple different websites and a PC program that all use the same calculations. So instead of putting that code in each website and in the PC program''s exe we have it in a dll and each website and the pc program refer to it.


Check this out.


这篇关于为什么我们制作一个dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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