如何处理“应用程序无法启动,因为它的并行配置不正确” vmware 中出现错误?
当我尝试在 Windows Server 2008 32 位操作系统的 VMWare Workstation 6.5 中打开已发布的 .exe 文件(我在 Visual Studio 2008 中编写)时,收到“应用程序无法启动,因为其并行配置不正确”。即使代码是,总是出错;
#include <stdio.h>
int main ()
{
printf ("HELLO\n");
return 0;
}
有人遇到过这个问题之王或者知道如何应对吗?
When I try to open released .exe file (which I wrote in Visual Studio 2008) in VMWare Workstation 6.5 with Windows Server 2008 32bit OS, got "The application has failed to start because its side-by-side configuration is incorrect." error all time even if the code is;
#include <stdio.h>
int main ()
{
printf ("HELLO\n");
return 0;
}
Is anyone faced that king of problem or does know how to cope with it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能忘记部署 运行时支持 DLL 或复制程序的调试版本。对于像这样没有导出 C++ 类或指针的 DLL 的小程序,最好链接 CRT 的静态版本。项目 + 属性、C/C++、代码生成、/MTd。重复发布配置,现在选择 /MT。
You probably forgot to deploy the runtime support DLLs or copied the Debug build of your program. For a small program like this without DLLs that export C++ classes or pointers it is better to link the static version of the CRT. Project + Properties, C/C++, Code Generation, /MTd. Repeat for the Release configuration, now choose /MT.
它与 VMWare 无关——它与没有安装 C 运行时的正确并行程序集有关。您需要知道需要哪些,然后安装运行时。您还可以使用清单来控制它。
这里有一些信息
http://en.wikipedia.org/wiki/Side-by -side_assemble
解决此问题的一种简单方法(对于 C/C++ 程序)是更改为静态链接到 C 运行时。转到项目属性,然后转到“代码生成”,然后选择 C 运行时的静态链接。这样您就不会依赖于运行时 dll。您可能使用的所有库都需要以这种方式链接才能工作。
It has nothing to do with VMWare -- it has to do with not having the correct side-by-side assemblies for the C runtime installed. You need to know which ones you require, and then install the runtime. You can also control it with a manifest.
There is some info here
http://en.wikipedia.org/wiki/Side-by-side_assembly
One easy way (for C/C++ programs) to get around this is to change to linking to the C-runtime statically. Go to your project properties, then Code Generation, and choose static linking for the C Runtime. Then you won't have a dependency on the runtime dlls. All libraries you might be using need to be linked this way for it to work.
如果虚拟机中未安装用于构建程序的 C/C++ 运行时,我通常会收到此错误。您可以在 微软网站。确保根据用于构建应用程序的 Visual Studio 版本下载正确版本的 CRT。
I generally get this error if the C/C++ runtime that the program was built with was not installed in the VM. You can download the CRT for Visual Studio 2008 SP1 at Microsoft's website. Make sure to download the correct version of the CRT based on the versions of Visual Studio used to build the app.