Creating a Visual Studio 2005 Project

1. Start VS 2005.   When it starts up, the top of the application looks something like this:




2. From the File menu, choose New, and then choose "Project ..." from the submenu.

3. The New Project window will pop up.  It looks like this:



In this window, you should
        - make sure Win32 is highlighted in the upper left
        - make sure Win32 Console Application is highlighted in the upper center
        - toward the bottom, replace <Enter_name> with a name for your project, such as   SmithM_HW1
        - toward the bottom, after "Location:",  make sure your work is being saved some place where you can find it.
        - toward the bottom, "Create directory for solution" should NOT be checked.

When all this is done, press OK.

4. A second window will appear.  It looks like this:



Click on "Application Settings" and the window will change to this:



"Console application" should be selected.
Click on :Empty project" and then click on "Finish".

5.  The top of the application will now look like this:



Right-click on "Source Files" (upper left of window), choose Add from the menu, and then choose "New Item..." from the submenu.

6.   A new window will pop up.  It looks like this:



In this window,  be sure
          - that "Code" is highlighted in the upper left under Visual C++
          - that "C++ File" is highlighted in the center
          - the <Enter_name> is replaced by something like      main
Then click on "Add"

7.  The application's upper left corner should now look like this:



Notice that "main.cpp" is listed under "Source Files" (to the left) and main.cpp also appears along
the editor tab next to "Start Page".   You are now ready to write code in main.cpp.

Try pasting this into the window:

#include <iostream>
using namespace std;

int main() {
    cout << "HI" << endl;
}

The application should now look like this:



8.  Under the Debug Menu,   choose "Start without Debugging"   (or press control-F5)
     If a dialog asks you "Would you like to build it", click on Yes.
     A black window (called the console) will pop up.  It should say "HI".
     Press any key to make the console disappear.
     You have now created a Visual Studio 2005 C++ project with one source file.
     (There is an Exit command under the File menu.)