[英]Hello world/Console Project in Visual Studio 2008 64 bit
So I am trying to run console 64 bit Hello World program. 所以我试图运行控制台64位Hello World程序。
I have Windows 7 Enterprise x64 bit version. 我有Windows 7 Enterprise x64位版本。
I have installed Visual Studio 2008 and have added all of components needed for 64 bit. 我已经安装了Visual Studio 2008,并添加了64位所需的所有组件。
I want to create simple console application. 我想创建简单的控制台应用程序。
It turns out to be a problem. 原来是个问题。
I have simple standard hello world project. 我有一个简单的标准hello world项目。
I have created it using New Project -> Empty project. 我已经使用“新建项目”->“空项目”创建了它。 I added main.cpp that contains this: 我添加了包含以下内容的main.cpp:
#include <iostream>
using namespace std;
int main()
{
cout << "howdy\n";
}
I added new configuration to the project by clicking on Config Manager and added x64 config. 我通过单击“配置管理器”将新配置添加到项目中,并添加了x64 config。 Compiled and it compiles. 编译并编译。
Tried running it and cmd.exe shoots up with following error: 尝试运行该命令,cmd.exe出现以下错误:
"The application has failed to start because its side-by-side configuration is in correct. Please see the application event log or use the command-line sxstrace.e xe tool for more detail. Press any key to continue . . . " “由于并排配置正确,因此应用程序无法启动。请查看应用程序事件日志或使用命令行sxstrace.e xe工具获取更多详细信息。按任意键继续...。”
Which set-up step if any I am missing. 我缺少哪个设置步骤。 What am I doing wrong and how should I go about setting simple console hello world in 64 bit world. 我在做什么错,我应该如何在64位世界中设置简单的控制台hello世界。
Thanks for any help 谢谢你的帮助
在Visual Studio中选择“控制台应用程序”类型的项目,而不是从一个空项目开始。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.