c++ - 如何使 64 位 dll 与 Windows Server 2008、Windows 7 和 Windows XP 的 64 位版本兼容?

标签 c++ windows dll compatibility x86-64

我在Windows Server 2008 64位版本上编译了一个dll。它在该版本的 Windows 上运行良好,但如果我切换到 Windows 7 或 XP 64 位版本,则 dll 将无法运行。如何使 dll 与 64 位版本 Windows 的所有三个版本兼容?

我使用的是 Visual Studio 2010。

最佳答案

您可以使用名为 Dependency Walker 的程序查看您的 .dll 文件具有哪些依赖项,并消除 Windows 版本之间不同的依赖项。

关于c++ - 如何使 64 位 dll 与 Windows Server 2008、Windows 7 和 Windows XP 的 64 位版本兼容?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3243824/

相关文章:

c++ - OpenXML SDK C++ 示例

c++ - 找不到 BOOST_FILESYSTEM(缺少 : BOOST_FILESYSTEM_LIBRARIES)

windows - WinINET 是可重入的吗?

windows - 在 Delphi 中使用 COM 支持在 DLL 和 .EXE 之间切换

c# - 将代码文件包含到 C# 中?为别人创建图书馆?

c - 两个程序链接到动态链接库

c++ - Windows Mobile 上的连续 VirtualAlloc 行为

c++ - 通过 union 合法访问 __m128 变量的字节吗?

windows - "npm faq"在 Windows 7 上失败("spawn ENOENT"错误)

C++ GDI+ 在透明分层窗口上绘制文本