Starting a Project in Visual C++ 2008 Express

Creating a Project

1) Start Studio, then from the menu, select File->New Project.  This should pull up a dialog box.


2) Select a Visual C++ Project (under project type), and select 'Console Application'.  Finally, type in a name for the project, and click the 'OK' button.  This will pull up another dialog box.


3) Click 'Next'
4) Check the 'Empty Project' check box, then press the 'Finish' button.

Adding a .cpp file to the project

1) Right-click on the project name in the newly created project from the previous instructions. This will pull up a context menu. Note: The project is located on the left-side of Studio in the Solution Explorer.  If it isn't there, you can go under the View menu and select 'Solution Explorer'.
2) From the context menu, select 'Add', and then 'New Item'. This will pull up a dialog box.


3) You should then see a choice of templates. Select a C++ file, giving it a name, and then click 'Add'.  If you don't see C++ file, then make sure your category is 'Visual C++'.


4) You should now see an editor that allows you to type in your code.

5)  Copy and paste the "Hello World" example (Located in the "Examples" page) into the editor.

6) F7 compiles.  CTRL-F5 runs it.