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 创建一个单独的文件夹?
基础教程推荐
- CString 到 char* 2021-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
