5
Object Oriented Programming (OOP) Visual Studio Usage. This guide is generated using Visual Studio 2008, using Visual Studio 2005 and Visual C++ is roughly the same. 1. Start Visual Studio by selecting the Microsoft Visual Studio 2008 from the start menu 2. Once Visual Studio is open select File->New->Project. You will obtain the following dialog box 3. From the menu on the left expand Visual C++ and click Win32

Object Oriented Programming (OOP) - BGUoop/Files/VisStudVisGuide.pdf · Object Oriented Programming (OOP) ... Click OK and a new Application Wizard is opened 6. Click Next and on

  • Upload
    vonhu

  • View
    280

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Object Oriented Programming (OOP) - BGUoop/Files/VisStudVisGuide.pdf · Object Oriented Programming (OOP) ... Click OK and a new Application Wizard is opened 6. Click Next and on

Object Oriented Programming (OOP)Visual Studio Usage.

This guide is generated using Visual Studio 2008, using Visual Studio 2005 and Visual C++ is roughly the same.

1. Start Visual Studio by selecting the Microsoft Visual Studio 2008 from the start menu

2. Once Visual Studio is open select File->New->Project. You will obtain the following dialog box

3. From the menu on the left expand Visual C++ and click Win32

Page 2: Object Oriented Programming (OOP) - BGUoop/Files/VisStudVisGuide.pdf · Object Oriented Programming (OOP) ... Click OK and a new Application Wizard is opened 6. Click Next and on

4. Select Win32 console application and set the name and location for a newly created project

5. Click OK and a new Application Wizard is opened

6. Click Next and on the following window select console application for application type and check the empty-project checkbox.

Page 3: Object Oriented Programming (OOP) - BGUoop/Files/VisStudVisGuide.pdf · Object Oriented Programming (OOP) ... Click OK and a new Application Wizard is opened 6. Click Next and on

7. Click Finish and a new empty project is generated8. Solution explorer displays the current content of the project.

9. New implementation and header files can be added by selecting the required project from the solution explorer and using Project-> Add New Item or by using the keyboard Ctrl-Shift-A shortcut

Page 4: Object Oriented Programming (OOP) - BGUoop/Files/VisStudVisGuide.pdf · Object Oriented Programming (OOP) ... Click OK and a new Application Wizard is opened 6. Click Next and on

10. Once all of the required files are added and edited, the project can be compiled using Build->Build Solution or by pressing F7

11. In order to set the required warning level (/W4) right-click the project on the solution explorer and select properties. On the property pages window expand C/C++ and select General

12. Set the Warning Level property to Level 4(/W4)

Page 5: Object Oriented Programming (OOP) - BGUoop/Files/VisStudVisGuide.pdf · Object Oriented Programming (OOP) ... Click OK and a new Application Wizard is opened 6. Click Next and on