Jump to content
  • Advertisement
Sign in to follow this  
_Auron_

Lesson 01: UnregisterClass does not work

This topic is 3679 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!