Download the 3DSample.zip file and extract it.
1. Goto Project properties.
2. Goto Linker-->Additional Library Directories and select edit.
3. Click on the folder path and set custom folder path.
4. Select the "include" folder and set apply-->ok.
Now the Glut Library is all set.
1. Copy and paste the tutoria.cpp file in the previously extracted 3Dsample folder.
2. Open the project using 3DExample1.sin with Visual Studio.
3. Right click the Source Files and exclude the Tutorial1.cpp file.
4. Again right click and Add->Existing item and add the tutorial file you want.
You're Good to Go !