分组DLL用于可执行文件 [英] Grouping DLL's for use in Executable

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

问题描述

有一种方法来分组一堆DLL,并且仍然在运行时使用它们(不是压缩的)。对不起,这个问题听起来很简单愚蠢,但我不知道还有什么要问。



我会解释情况:



我们有两个独立的Windows应用程序,现在我们的一个应用程序已经膨胀到这样的无比的比例,其他应用程序不能运行在第一个应用程序的范围之外。我们希望保持一些封装,同时让较小的程序在一些更大的程序的功能。



运行应用程序没有问题,除了我们不想发送较小项目的所有20-30 DLL。

解决方案

可以通过添加启动代码来检查DLL是否存在于目标系统上,如果不存在从资源部分提取它们(或简单地标记到exe的末尾)。一个很好的例子是 Process Explorer - 它分发为一个二进制文件,但运行时它会提取并安装驱动程序。


Is there a way to group a bunch of DLL's and still use them at run time (not zipped up). Sorry this question sounds terse and stupid, but I'm not sure what more to ask.

I'll explain the situation though:

We've had two standalone Windows Applications and now one of our Applications has swelled to such ungainly proportions that the other application cannot run outside of the scope of the first app. We want to maintain some of the encapsulation we had while letting the smaller program in on some of the bigger program's features.

There is no problem in running the application, other than we don't want to send out all the 20-30 DLL's that the smaller project has.

解决方案

It is possible to do this by adding startup code which checks if the DLLs are present on the target system and if not then extracts them from the resources section (or simply tagged onto the end of the exe). A good example of this being done is Process Explorer - it's distributed as a single binary, but when run it extracts and installs a driver.

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

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