Lab 1: Project 1 Setup
Goal: The purpose of this tutorial is to get you started on project 1.
Action:
-
Download Project 1 source files from blackboard to your Desktop (or location of choice) and unzip.
-
Download Project 1 sample executable from blackboard to your desktop (or location of choice).
-
Create a new Visual Studio Project for project 1.
-
From the start menu select Microsoft Visual C++ 2008 Express Edition.
-
Choose the File tab then select New -> project.
-
On the left pane of the window that appears select product type: Visual C++, win32.
-
In the right pane of the same window choose Win32 Console Application.
-
For the location enter the name IP2008 and choose the Desktop as the location (or location where you put the IP2008 folder).
-
On the left pane of the new window that appears click on Application Settings.
-
In the right pane of the same window check Empty project.
-
Click finish.
-
Go to the IP2008 folder on your Desktop (or other location). You should now see the Visual Studio solution (IP.sln). The project should open in Visual C++, if not, double click the solution to open the
project.
-
In the left pane of the VS window, you should see three empty folders for Header Files, Resource Files, and Source Files.
Drag the header files (.h - 5 files) from the IP2008 folder into the header folder. Drag the source files (.cpp - 4 files) into the source folder.
-
Click on the Project tab and select References. Open Configuration Properties and click on C/C++. In the righthand pane
at "Additional Include Directories" add the following:
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\GL
then click OK.
-
Click on the Build tab and select Build. The program should compile.
-
Click on the Debug tab then select Start Without Debugging.
-
Find a 24-bit bmp image on the web and download it to your IP2008 folder.
-
Right click in the window labeled Image Processor. Choose File->Open. In the command window enter the
filename of your bmp file at the prompt. It should open.
-
Now write a convert to gray routine in ip.cpp. NOTE: do not edit anything but ip.cpp.
Deliverables:
None.