延迟加载DLL [英] Delay Loading DLLs

查看:290
本文介绍了延迟加载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,但需要时加载,通过在链接器/输入/ Delay Loaded DLLs字段。对于不同的版本配置,此设置可能不同。

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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