CS 480
Instructions for Setting Up OpenGL Projects in Visual C++

Follow these steps whenever you wish to create an OpenGL project in the CSIS Lab this semester:

  1. Launch Microsoft Visual C++ if it is not already running. Be sure to close any active workspaces by choosing "File/Close Workspace" from the menu bar.

  2. Choose "File/New" from the menu bar. Enter any name you choose as the project name (in Lab Exercise 1, use "FIRST" for your project name), and change the Location to "H:\CS480\LAB1". Select "Win32 Console Application" from the list in the dialog box, then click the OK button. When the Console Application Wizard appears, choose to create an Empty Project.

  3. In the project window that appears on the left-hand side of the screen, click on the "FileView" tab at the bottom of the window. Expand the "first" tree by clicking on the plus sign - you should see three folders appear.

  4. Choose "Project/Add to Project/Files" from the menu bar, and type the name of your .CPP file as the file name to be added, and be sure to include the .CPP extension (in Lab Exercise 1, use "FIRST.CPP" as the file name to be added). Now, the tree in the project window should show a plus sign to the left of the Sources folder; click on the plus sign to expand the tree and show that the file name you just entered is now a part of the project.

  5. Choose "Project/Settings" from the menu bar, click on the "Link" tab at the top of the window, and add the filename "H:\CS480\LAB1\GLUT32.LIB" to the END of the "Object/Library Modules" list.

  6. Using Windows Explorer, copy the two .DLL files from the CS480\LAB1 folder into the DEBUG folder of the project folder that was created for this project. This will be located two folders below the LAB1 folder on your H: drive.

  7. Finally, back in Visual C++, double-click on the .CPP file name ("FIRST.CPP" in Lab Exercise 1) to open an editor window.