
Working with Projects and Solutions
Visual Studio organizes your work in projects and solutions. A solution can contain more than one project, such as a DLL and an executable that references that DLL. For more information, see Introduction to Solutions, Projects, and Items.
The first step in writing a Visual C++ program with Visual Studio is to choose the type of project. For each project type, Visual Studio sets compiler settings and generates starter code for you.
To create a new project
-
On the File menu, point to New, and then click Project….
-
In the Project Types area, click Win32,and then, in the Visual Studio installed templates pane, click Win32 Console Application.
-
Type game as the project name.
When you create a new project, Visual Studio puts the project in a solution. Accept the default name for the solution, which by default is the same name as the project.
You can accept the default location, type a different location, or browse to a directory where you want to save the project.
Press OK to start the Win32 Application Wizard.
-
On the Overview page of the Win32 Application Wizard dialog box, press Next.
-
On the Application Settings page under Application type, select Console Application. Select the Empty Project setting under Additional options and click Finish.
You now have a project without source code files.