I am trying to get the code from nehe.gamedev.net to work. I downloaded the code for Borland C++ Builder, but when I run it it gives me an error saying that it could not unregister a class. The specific line of code is : “if (!UnregisterClass(“OpenGL”,hInstance))”. Can anyone help?
OpenGL should not have quotation marks around it. Do not put the name of yourwndclass.lpszClassName in UnregisterClass(). Use UnregisterClass(yourwndclass,hInstance) instead.