Вы находитесь на странице: 1из 4

How to create C++ Windows Forms Application Project in Visual Studio 2012

In Visual C++, create a new Application project.


Go to File -> Project

You will see the following screen, select CLR Empty Project under Visual C++. You have to name the
project and set the location to save the project as below.
Add a new Item to the project.
From the main menu go to Project Add New Item

You will see the following screen, select Windows Forms under UI. You have to name the Form as
below.
Select the project properties from the main menu.
Go to Project - > Properties

You have to set few properties as follows:

Go to Linker - > System -> Subsystem and select Windows (/SUBSYSTEM:WINDOWS)


Go to Linker - > Advanced -> Entry Point and type as main

Double click the MyForm.cpp in the Solution Explorer and implement the main program.

Compile and run the program.


From the main menu go to DEBUG-> Start Debugging

Вам также может понравиться