简体   繁体   中英

Hello world/Console Project in Visual Studio 2008 64 bit

So I am trying to run console 64 bit Hello World program.

I have Windows 7 Enterprise x64 bit version.

I have installed Visual Studio 2008 and have added all of components needed for 64 bit.

I want to create simple console application.

It turns out to be a problem.

I have simple standard hello world project.

I have created it using New Project -> Empty project. I added main.cpp that contains this:

#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. Compiled and it compiles.

Tried running it and cmd.exe shoots up with following error:

"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 . . . "

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.

Thanks for any help

在Visual Studio中选择“控制台应用程序”类型的项目,而不是从一个空项目开始。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM