并行程序集、Windows 7 和 Visual Studio 2005
我有一台安装了 Visual Studio 2005 SP1 的 Windows 7 计算机。使用它,我构建了一个应用程序,该应用程序在运行时加载使用 VS2005 SP1 但在 Windows XP 上编译的 DLL。此操作失败,并出现以下错误:
“...\foo.dll”:应用程序无法启动,因为其并行配置不正确。请参阅应用程序事件日志或使用命令行 sxstrace.exe 工具了解更多详细信息。
加载的 DLL 是根据调试 CRT 进行编译的。 这个问题的答案< /a> 提示 vcredist_x86.exe 仅包含 CRT 的发行版本。我不确定这在这种情况下是否相关,因为我的机器和编译 DLL 的机器都安装了完整的 VS2005 SP1。
我是否应该尝试在 Windows 7 上重建 DLL(我不想这样做),这会导致 DLL 在 Windows XP 计算机上无法使用吗?
I have a Windows 7 machine with Visual Studio 2005 SP1 installed. Using this, I build an application which loads a DLL at runtime compiled with VS2005 SP1 but on Windows XP. This fails, with the following error:
"...\foo.dll": The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
The DLL loaded is compiled against the debug CRT. The answer to this question hints that vcredist_x86.exe only contains release-versions of the CRT. I'm not sure if that is relevant in this case, since both my machine and the machine on which the DLL was compiled on both have the full VS2005 SP1 installed.
Should I attempt to rebuild the DLL on Windows 7 (I'd prefer not to), and will that cause the DLL to become unusable on the Windows XP machine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了。问题是 Windows 7 计算机没有 KB971090< /a> 更新,安装在构建 DLL 的 Windows XP 计算机上。我必须明确告诉 Windows Update 我想要接收非 Windows 更新才能安装更新。
Problem solved. The problem was that the Windows 7 machine did not have the KB971090 update which was installed on the Windows XP machine which built the DLLs. I had to explicitly tell Windows Update that I wanted to receive non-Windows updates in order to be able to install the update.