To create a console project, select the New option from the File menu, or press [Ctrl-n]. The following dialog will appear:

New Project Dialog

Choose Win32 Console Application from the project types list, specify the project name and the location on disk for the application. If a workspace is currently open, choose whether to create a new workspace or to add this new project to the current workspace. After setting up the basic project information and pressing the OK button, another dialog will appear:

New Console Application Dialog

Selecting An empty project will create a new project that contains no files. Now we can create new files to add to the project or insert pre-written files into the project.

To create new files, select the New option from the File menu. Like before, the New dialog will appear, but with the Files tab selected:

New File Dialog

Select the type of file to add to the project, indicate which project to add it to from the drop list, and specify the file name and location.

To insert pre-written files, right click on the project in the Workspace window. A context menu will appear:

Add File Menu

Select Add Files to Project from the menu and a file chooser will be displayed:

Add Files Chooser

The chosen files will be added to the appropriate project folder. After adding some source and header files, a project might have the following Workspace window File View:

File View

and the following Class View:

Class View

Next, we will look at building and debugging a console application.