gpt4 book ai didi

32bit-64bit - 32 位 DLL "may not compatible"在 Server 2008 上,但在 Server 2003 上工作

转载 作者:行者123 更新时间:2023-12-03 12:13:27 25 4
gpt4 key购买 nike

我们有一个项目可以编译为 32 位 COM DLL 和 64 位 COM DLL(与 my earlier question 中的相同)。当我在我的 Windows 7 机器上注册两者时,都成功注册。当我在 Windows Server 2003 机器上注册两者时,都成功注册。

但是当我尝试在 Windows Server 2008 R2 标准 SP1 机器上注册 DLL 时,64 位 DLL 注册成功,但 32 位 DLL 失败并显示消息(原文如此):

模块“%1”可能与您运行的 Windows 版本不兼容。
检查模块是否与 regsvr32.exe 的 x86(32 位)或 x64(64 位)版本兼容。


我不认为 32 位 DLL 可以与 WS2003 和 Win7 兼容,但不能与 WS2008 兼容。这是没有意义的。

可能会发生什么?

最佳答案

使用Process Monitor来自 SysInternals。

1. 按“进程名称”过滤 = regsvr32.exe。

Filter

2. 尝试从正确版本的 regsvr32.exe 注册您的 DLL 文件(32 位版本在 SysWow64 文件夹中)

3. Process Monitor 将跟踪您计算机上发生的一切。

4. 首先通过消除注册表事件(现在)开始您的分析:

enter image description here

5. 您可能能够看到找到和未找到的 DLL 文件。

这是 Threed32.ocx 的 regsvr32.exe 的(非常)部分截图,我们可以在其中看到一些所需的 DLL 文件:

enter image description here

6. 你的工作才刚刚开始。现在起。

关于32bit-64bit - 32 位 DLL "may not compatible"在 Server 2008 上,但在 Server 2003 上工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9879418/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com