View Full Version : Unregister class???
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?
04-04-2004, 04: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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.