Setting for using OpengGl in VC.Net

I meet a problem when I use the glu fuctions.I’ve put the glut.dll and glut32.dll in system32(windows 2000),and the .lib and .h files in the include and lib directorys.But I meet errors when debug.I list the codes below:
int _tmain(int argc, _TCHAR* argv[])
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(650, 50);
glutCreateWindow(argv[0]);
init ();
glutReshapeFunc (reshape);
glutDisplayFunc (display);
glutKeyboardFunc (keyboard);
glutMainLoop();
return 0;
}
It seems that the glut fuctions failed to work.Could you help me?Thank you! violinming@163.com

Hello,
Post these errors to help us understanding your problem

This link tells about setting up glut amoung other things:
http://www.geocities.com/hughesinnovations/openglsetup01.html

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.