简体   繁体   English

Visual Studio 2008 64位中的Hello World /控制台项目

[英]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.

相关问题 C ++ Visual Studio 2008,将项目从64位迁移到32位 - C++ Visual Studio 2008, moving a project from 64-bit to 32-bit Visual Studio 2008 sp1 vc ++项目可以在32位模式下工作,但不能在64位模式下工作 - Visual Studio 2008 sp1 vc++ project works in 32 bit mode, but not 64 bit Visual Studio 2008 64位部署项目未按预期部署64位VC90合并模块 - Visual Studio 2008 64 bit Deployment Project does not deploy 64 bit VC90 merge modules as expected 是否可以在Visual Studio 2008 64位版本中使用Boost库? - Is it possible to use boost library in visual studio 2008 64 bit version? Visual Studio 2015“ Hello World”多个错误 - Visual Studio 2015 “Hello World” Multiple Errors visual studio 2012你好世界c ++ - visual studio 2012 hello world c++ 为什么Visual Studio生成的C ++“Hello World”项目看起来有点奇怪? - Why does the C++ “Hello World” project generated by Visual Studio look a little strange? Visual Studio 2008 Express C ++ 32位在Windows 7 64位上构建 - Visual Studio 2008 Express C++ 32 bit build on Windows 7 64 bit Visual Studio 2008不会出现Win 7 64位的X64选项 - Visual Studio 2008 doesn't appear X64 option for win 7 64 bit Microsoft Visual Studio 2008 C ++错误LNK2001,Windows Vista 64位 - Microsoft Visual Studio 2008 C++ error LNK2001, Windows Vista 64 bit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM