Everything works fine until I put the code on the website into the program. When I run the program, the desired result seems to come up, but it is prevented by a pop-up saying "This application has failed to start because glut32.dll was not found. Re-installing the application may fix the problem."
I downloaded the glut file from this site: