How can I make a separate folder for my application#39;s DLLs?(如何为我的应用程序的 DLL 创建一个单独的文件夹?)
问题描述
我已经成功地将一个大型 MFC 项目划分为几个较小的 DLL 项目.现在我想在我的应用程序文件夹中有一个名为DLL"的单独文件夹,其中放置了子项目中的所有 DLL.
I have successfully divided a large MFC project into a couple of smaller DLL projects. Now I want to have a separate folder called "DLL" in my application's folder, where all the all the DLLs from the subprojects are placed.
谁能指导我如何实现这一目标?
Can anybody give me guidance in how to achieve this?
推荐答案
DLL 重定向是一个相当新的功能(Windows 2000 IIRC).将您的 DLL 目录命名为 <myapp>.exe.local
,Windows 将首先检查它是否有任何通过 LoadLibrary(Ex)
加载的内容.这包括延迟加载的 DLL.
DLL redirection is a fairly new feature (Windows 2000 IIRC). Name your DLL directory <myapp>.exe.local
, and Windows will check it first for anything loaded via LoadLibrary(Ex)
. This includes delay-loaded DLLs.
这篇关于如何为我的应用程序的 DLL 创建一个单独的文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何为我的应用程序的 DLL 创建一个单独的文件夹?


- 从python回调到c++的选项 2022-11-16
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- STL 中有 dereference_iterator 吗? 2022-01-01
- 静态初始化顺序失败 2022-01-01
- C++ 协变模板 2021-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- 近似搜索的工作原理 2021-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01