Windows 10与Windows7之间的WS2_32.dll行为问题 [英] issues with WS2_32.dll behavior between windows 10 vs windows7

查看:793
本文介绍了Windows 10与Windows7之间的WS2_32.dll行为问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找不到与现有问题有关的合适解决方案,因此请在此处提出新问题. 我们使用具有WS2_32.LIB作为依赖项的log4cxx. Windows SDK版本10.0.16299.0中提供了WS2_32.LIB. 在Windows7 WS2_32.dll上使用此log4cxx.dll及其所有依赖项时,将正确加载它们并正常启动应用程序.

但是在Windows 10环境中WS2_32.dll期望依赖的dll诸如API-MS-WIN-CORE-CRT-L1-1-0.DLL属于Windows10或任何可导致应用程序的Microsoft Visual C ++ Redistributable的一部分错误.

WS2_32.dll中的差异及其在Windows7和Windows10之间的依赖关系可以通过依赖关系查看器清楚地看到.

Windows 10上的

WS2_32.dll:

而 Windows7上的WS2_32.dll是

如此处所示,API-MS-WIN-CORE-CRT-L1-1-0.DLL不是Windows7中的从属dll,因为Windows 10中的dll在系统中不存在,从而导致应用程序错误.

那么,使应用程序成功运行的方式应该是什么?在编译log4cxx.dll以避免在Windows 10中出现此问题时,应提供哪些替代依赖关系而不是WS2_32.LIB?在哪里可以找到有关Windows OS版本之间的此类更改的文档? 请提出建议.

解决方案

旧的Depends.exe不支持那些依赖项的开源替换:

Dependencies是对旧版软件Dependency Walker的重写 它随Windows SDK一起提供,但其开发停止了 大约在2006年.依赖关系可以帮助Windows开发人员进行故障排除 他们的dll加载依赖性问题.

Did not find any suitable solution with existing questions so asking new question here. We use log4cxx which has WS2_32.LIB as dependency. WS2_32.LIB is present in Windows SDK version 10.0.16299.0. When using this log4cxx.dll on windows7 WS2_32.dll and all its dependencies gets loaded properly and application start normally.

but in windows 10 environment WS2_32.dll expects dependent dll's like API-MS-WIN-CORE-CRT-L1-1-0.DLL which are not part of windows10 or any of the microsoft visual c++ Redistributable which results in application error.

difference in WS2_32.dll and its dependencies between Windows7 and windows10 are clearly visible via dependency walker.

WS2_32.dll on windows 10:

whereas WS2_32.dll on windows7 is

as shown here API-MS-WIN-CORE-CRT-L1-1-0.DLL is not a dependent dll in windows7 where as its in windows 10 which is not present in the system resulting in application error.

So what should be the way to make the application run successfully? what alternate dependency should be provided instead of WS2_32.LIB while compiling log4cxx.dll to avoid this issue in windows 10? Also where to find documentation about such changes between windows OS versions? Please suggest.

解决方案

The old depends.exe doesn't support those API sets and shows wrong data.

use the open source replacement called Dependencies:

Dependencies is a rewrite of the legacy software Dependency Walker which was shipped along Windows SDKs, but whose developement stopped around 2006. Dependencies can help Windows developers troubleshooting their dll load dependencies issues.

这篇关于Windows 10与Windows7之间的WS2_32.dll行为问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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