Delay Loading DLLs(延迟加载 DLL)
问题描述
我迫切需要帮助,我需要在 Visual Studio 中管理应用程序依赖项.应用程序仅在特定版本的 Windows 上链接到 DLL,比如 Windows 7.在其他环境中,不应加载 DLL.我将如何使用 DLL 延迟加载来实现这一目标,因为这个主题对我来说是全新的,并且在网上没有关于这个特定问题的任何好的参考资料.
I am in desperate need of help, I need to manage an application dependency in Visual Studio. The application links to a DLL only on a specific version of windows, lets say Windows 7. and on other environments, the DLL should not be loaded. How will I be able to achieve that using DLL Delay Loading as this topic is completely new to me and there isn't any good references online for this particular matter.
问候
推荐答案
通过在链接器/输入/延迟加载的 DLL 字段中指定它,您的项目可以指定它所依赖的 dll 应该但在需要时加载.对于不同的构建配置,此设置可能不同.
Your project can specify that a dll it depends upon should but be loaded when needed, by specifying it in the Linker/Input/Delay Loaded DLLs field. This setting can be different for different build configurations.
这篇关于延迟加载 DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:延迟加载 DLL


基础教程推荐
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 这个宏可以转换成函数吗? 2022-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 我有静态或动态 boost 库吗? 2021-01-01
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- 常量变量在标题中不起作用 2021-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01