单个程序有多个文件?
通常,当我创建一个程序时(到目前为止我只制作了几个非常简单的程序),我将程序编译成独立的 EXE。现在分发的大多数程序都有许多 exe、dll 和其他文件,这些文件是在您首次下载程序时安装的。将我的程序编译成独立的 EXE 是错误的吗?独立程序与多文件程序相比有哪些优点/缺点?
我能想到的唯一可能的事情是更新和修复,因为这样就不必下载 100MB 的文件并覆盖所有用户设置数据等,您可以简单地下载一个 400kb 的文件,该文件仅替换需要的文件固定的。
Typically, when I create a program (I have only made a few very simple ones so far) I compile the program into a standalone EXE. Most programs that are distributed nowadays have many exes, dlls, and other files that are installed when you first download the program. Is this wrong to be compiling my programs into standalone EXEs? What are some advantages/disadvantages to a standalone vs multifile program?
The only possible thing I can think of is for updating and fixes, because then instead of having to download a 100MB file and overwrite all user settings data, etc. you can simply download maybe a 400kb file that only replaces the files that need to be fixed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
DLL文件是库文件。如果您没有使用库中的任何函数,则 DLL 文件将不会包含在您的程序中。拥有多个 EXE 文件通常是将较大的程序分解为更小、更易于维护的单元的一种方法。
如果您刚刚开始,那么您还不需要担心这一点。有一天,当您正在处理一个涉及使用其他预构建组件的较大项目时,您会在构建文件夹中进行深入研究,并发现您还有一些 DLL 文件和其他资源。
DLL files are library files. If you are not using any functions from a library, then the DLL files will not be included with your program. Having multiple EXE files are generally a way to break a larger program down into smaller, more maintainable units.
If you're just getting started, this is not something you'll need to worry about just yet. One day, when you're working on a larger project that involves using other pre-built components, you'll dig around in your build folder and notice that you also have some DLL files and other resources.