How to Start with MS Visual Studio C++ 6

by Yukong Zhang

Start up MS Visual Studio C++ 6. A blank window should be displayed.

Creating Project

  1. Under file menu, click new and then project. The new project dialog box will be displayed.
  2. Select Visual C++ Projects, select Win32 Console Application, and then type a project name in the Project Name box.
  3. Choose a directory for your new project in the Location box.
  4. Select the radio button "An empty project" in the Console Application window and click OK to start a new project.

Adding a C++ source file to the project  

  1. From Project menu, select "Add to Project" Item and then select "New" to add a new file to the project.
  2. Select a file type such as head file or C++ source file and type file name in the File Name box and then click OK.

Adding existing C++ source files to the project  

  1. From Project menu, select " Add to Project" Item and then select "Files" item. Find the existing file and add it to the project. Also you remove files from a project by deleting the files from the File View sub-window on the left side of the main window. Note deleting a file from a project just removes the file name from the project and doesn't delete the file from your local drive.

Building the Executable

Select Build from the Build menu, and then click the Build item to generate an executable. Click "Execute" from the Build menu to run the program. A console window will pop up and display the output of the program.