Using Microsoft Visual Studio 2005 By Courtesy of Suma Rao Modifications by John G' McMahon Updated - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Using Microsoft Visual Studio 2005 By Courtesy of Suma Rao Modifications by John G' McMahon Updated

Description:

This path will be used in a later step. Visual Studio 2005. 4. Starting VS2005 ... and click Start Visual Studio button (only first time after VS2005 installation) ... – PowerPoint PPT presentation

Number of Views:22
Avg rating:3.0/5.0
Slides: 13
Provided by: vishwanat6
Category:

less

Transcript and Presenter's Notes

Title: Using Microsoft Visual Studio 2005 By Courtesy of Suma Rao Modifications by John G' McMahon Updated


1
Using Microsoft Visual Studio 2005By Courtesy
of Suma RaoModifications by John G. McMahon(
Updated 6/2/2008 )
2
Topics
  • Before Starting Visual Studio 2005 (VS2005)
  • Starting Visual Studio 2005 (VS2005)
  • Creating a VS2005 Project
  • Creating a VS2005 File
  • Saving a VS2005 File
  • Adding a source File into an existing project
  • From a Source File to an Executable File
  • Closing a VS2005 Project/Solution
  • Opening an existing VS2005 Project/Solution

12/31/2009
Visual Studio 2005
2
3
Before Starting VS2005
  • For a new project, use Windows Explorer or some
    other method to create a new folder on a hard
    drive where your entire project will be stored.
    Consider using a short descriptive name which
    will characterize the project. This path will be
    used in a later step.

4
Starting VS2005
  • Click the Start button from the Windows taskbar
    and select Programs ? Microsoft Visual Studio
    2005 (application) ? Microsoft Visual Studio 2005
    (Executable) 1
  • A Choose Default Environment Settings window
    appears 2 (only first time after VS2005
    installation)
  • Choose Visual C Development Settings 3 and
    click Start Visual Studio button (only first time
    after VS2005 installation)
  • Visual Studio 2005 starts and a Start Page -
    Microsoft Visual Studio window appears 4
  • SnapShots of Starting VS2005

5
Creating a VS2005 Project
  • From the Start Page - Microsoft Visual Studio
    window EITHER click on New Project button 1 OR
    from the File menu, Select New ? Project... 2
  • A New Project dialog box appears 3
  • From the Project Types section, select Visual
    C, then General 3
  • From the Templates section, select Empty Project
    icon. 3 Then select the location for the
    project created before starting VS2005 by
    clicking the Browse button at the end of the
    Location text box 3, a Project Location dialog
    box appears 4

6
Creating a VS2005 Project (Contd)
  • Select the location for the project created
    before starting VS2005 and click Open in the
    Project Location dialog box 5. The path
    selected appears in the Location text box.
  • Now enter a project name in the Name text box
    6 and location is in the Location text box
    (from the above step) 7 of New Project dialog
    box. Click the OK button
  • A projectName - Microsoft Visual Studio window
    appears 8
  • SnapShots of Creating a VS2005 Project

7
Creating a VS2005 File
  • From the File menu, select New, then File. 1 A
    New File dialog box appears 2
  • From the Categories section, select Visual C
    and C file (.cpp) or Header file (.h) icon (as
    appropriate) from the Templates section of the
    New File dialog box and click Open button 2
  • The file is created and a Sourcen.cpp tab is
    created in the projectName - Microsoft Visual
    Studio window to enter source code 3
  • SnapShots of Creating a VS2005 File

8
Saving a VS2005 File
  • Enter the source code in the Sourcen.cpp tab 1
  • From the File menu, click on the Save Sourcen.cpp
    As or Save Headern.h As option. 2
  • Save File As dialog box appears. 3 Select
    appropriate project folder
  • Give an appropriate file name, keeping the .cpp
    or .h in the File name text box, and click the
    Save button 4
  • The file is saved and a projectName - Microsoft
    Visual Studio filename.cpp window appears 5
  • SnapShots of Saving a VS2005 File

9
Adding Source File into Existing Project
  • In the Solution Explorer - projectName window,
    click on the Source Files or Header Files folder
    (as appropriate) 1
  • From the Project menu, select Add Existing
    Item... 1
  • The Add Existing Item ProjectName dialog box
    appears with the filename.cpp (or filename.h).
    Highlight the filename . Click the Add button
    2
  • The filename.cpp (or filename.h) is added to the
    project and is visible under the Source Files (or
    Header Files) folder in the Solution Explorer
    projectName window 3
  • SnapShots of adding source file into existing
    project

10
From Source File to Executable File
  • From the Debug menu, select Start Without
    Debugging option 1
  • A dialog box related to building the project may
    appear. Click the Yes button 2
  • The results of the project build appears in the
    output panel. 3 If the program has no errors
    the program will run and output is displayed in a
    DOS popup window 4
  • Respond to message to close the DOS popup window.
  • SnapShots Of Compiling in VS2005

11
Closing VS 2005 Project/Solution
  • From the File menu, select Close Solution 1
  • Respond to any message that may appear about
    saving changes 2
  • To create a new project repeat above steps
  • SnapShots of Closing a Solution in VS2005

12
Opening an existing VS2005 Project/Solution
  • In VS2005, select Open ? Project/Solution from
    the File menu 1
  • An Open Project dialog box appears. Go to
    appropriate location of the project and select
    the appropriate FileName.sln file to open the
    solution 2
  • The ProjectName - Microsoft Visual 2005 window
    with FileName.cpp tab should appear 34
  • SnapShots of opening an existing VS2005 solution
Write a Comment
User Comments (0)
About PowerShow.com