Transferred from: Http://www.cppblog.com/longzxr/archive/2009/12/04/102565.html?opt=admin
Today debugging OpenGL source program, compiled through, but a run on the prompt, the computer lost Glut32.dll file, depressed not, surf the internet, the most is to provide the most is the practice is, first download this file to copy this file to C:\WINDOWS\system 32, But after doing the discovery is still not good, tossing a little afternoon, suddenly realized that it may be my newly installed Windows 7 system about, and because it is 64-bit, so, try to copy this glut32.dll to the SysWOW64 folder in C:\WINDOWS, Later on all OK, alas, in this special record, remind everyone to install Win 7 and installed VC + + 6.0 of the Friends of the attention.
PS: The initial contact with OpenGL will inevitably encounter some problems, these problems may not be related to the program, but some of the settings of the compilation environment and the installation of the header files, especially organized a bit, as follows:
(1) Copy the Gult32.dll,glut.dll to the Windows system system32 (if it is a win 7 64-bit operating system, it is C:\WINDOWS in the SysWOW64 this file)
(2) Copy the Gult32.lib,glut.lib to the VC's lib directory
(3) Copy Gult.h to VC INCLUDE\GL
OpenGL source program, run on prompt, "computer lost Glut32.dll file"