在 64 位服务器操作系统上加载 32 位 dll
我正在尝试使用 32 位架构上的第三方 DLL。我知道将 .NET 可执行文件定位为 32 位应该会有所帮助,但不幸的是 DLL 依赖于“msvcr100.dll”(C 运行时)。如果我不提供这个 dll,我会收到 DllNotFound 异常(我可以在运行时捕获)。但是,如果我还使用第 3 方 DLL 复制 msvcr100.dll,我会收到“
有没有办法在 64 位服务器操作系统上为 32 位应用程序部署官方 C 运行时?
谢谢。
I am trying to use a third-party DLL that is on the 32-bit architecture. I understand that targeting my .NET executable to be 32-bit should help, but unfortunately that DLL has a dependency on "msvcr100.dll" (the C runtime). If i don't provide this dll i get a DllNotFound exception (which i am able to catch at runtime). However, if i also copy the msvcr100.dll with the 3rd party DLL i get the "<ExeName> has stopped working" crash message, and i can't really find out what's wrong.
Is there any way to deploy an official C runtime for 32-bit apps on a 64-bit server OS?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在 64 位操作系统上安装 32 位版本的 VC 运行时。
您可以在此处找到它。
You need to install the 32-bit version of the VC runtime on your 64-bit OS.
You can find it here.