Wednesday, January 4, 2012

Create Win32 C++ Console application using Microsoft Vistal Studio 11 Developer Preview

- Start Microsoft Vistal Studio 11 Developer Preview

- Click New Project... in the start-up page.
New Project...

- Select template of Visuall C++ Win32 Console Application, enter Name, and optionally enter Location, and click OK.
New Project Wizard: Visuall C++ Win32 Console Application

- Review the project settings and click Next.
Project Settings

- Review and accept the default application settings, click Finish.
Application Settings

- The Wizard will generate a default project:
Auto-generated project

- Modify the code:
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>


int _tmain(int argc, _TCHAR* argv[])
{
 std::cout << "Hello World!" << std::endl;
 system("PAUSE");
 return 0;
}

Add the code

- Finally, Save, Build and Run the first Visuall C++ Win32 Console Application:
Run

No comments:

Post a Comment