Advertisement Jump to content
Sign in to follow this  

Lesson 01: UnregisterClass does not work

This topic is 3835 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

From reading bits here and there, it seems DestroyWindow() might be of use, but why was this fix not included in the first tutorial? My code is exactly copy-and-paste from the first tutorial, save for the extra #include <stdafx.h> that is apparently also needed to compile. My project compiles fine, but whenever the function KillGLWindow() is run, UnregisterClass() always returns FALSE. Does someone have a fix for this? Because I'm a bit new to OpenGL. Edit: I found if I use DestroyWindow() before UnregisterClass(), it fixes the problem, but some forum posts say theres no reason to even use DestroyWindow().. [Edited by - _Auron_ on July 23, 2008 8:26:37 PM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!