From the start menu select Microsoft Visual Studio 8. If you've never used Visual Studio before, it may ask what type
of development you do; answer C++.
Choose the File tab then select New -> project.
On the left pane of the window that appears check product type: 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 location.
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 the desktop. You should now see the Visual Studio (VS) icon. Double click the icon 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 from the IP2008 folder into the header folder. Drag the source 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 hmc cs155 image process. 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.