PDA

View Full Version : Unregister class???



04-03-2004, 04:29 PM
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?

4TheKing
04-04-2004, 05:03 PM
OpenGL should not have quotation marks around it. Do not put the name of yourwndclass.lpszClassName in UnregisterClass(). Use UnregisterClass(yourwndclass,hInstance) instead.