如何检查 DLL 依赖关系? [英] How to check for DLL dependency?

查看:20
本文介绍了如何检查 DLL 依赖关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时我在做一个小项目时不够小心,不小心添加了一个我不知道的 DLL 依赖项.当我将此程序发送给朋友或其他人时,它不起作用",因为缺少某些 DLL".这当然是因为程序可以在我的系统上找到 DLL,但在他们的系统上找不到.

Sometimes when I'm doing a little project I'm not careful enough and accidentally add a dependency for a DLL that I am not aware of. When I ship this program to a friend or other people, "it doesn't work" because "some DLL" is missing. This is of course because the program can find the DLL on my system, but not on theirs.

有没有办法扫描可执行文件的 DLL 依赖项或在干净的"无 DLL 环境中执行程序以进行测试以防止出现这些 oops 情况?

Is there a way to scan an executable for DLL dependencies or execute the program in a "clean" DLL-free environment for testing to prevent these oops situations?

推荐答案

dumpbin 来自 Visual Studio 工具(VCin 文件夹)可以在这里提供帮助:

dumpbin from Visual Studio tools (VCin folder) can help here:

dumpbin /dependents your_dll_file.dll

这篇关于如何检查 DLL 依赖关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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