|
Author
|
Topic: An Error in GLBuffer?
|
nurtsi New Member
|
posted January 05, 2000 08:05 AM
If one performs some error checking while creating a window with GLBuffer the RegisterClassEx() only succeeds once. After that every time the window is destroyed and re-created the RegisterClassEx() fails. Is this because the window class can't be registerd more than once?Now if I'd like to code 100 % 'correct' code should I unregister the window class every time I destroy a window and then re-register it. Or is it OK to keep the old window class (which seems to work alright)?
------------------ --- Nurtsi IP: |
LDA Seumas unregistered
|
posted January 07, 2000 10:30 AM
Hmm, good point! I hadn't thought of that. It seems to be a benign failure at least.Window Classes should last the life of the application, so it should be OK to set a static class member flag when the class is registered once, and skip the registration step every time after that. ------------------ -- Seumas McNally, Lead Programmer, Longbow Digital Arts
IP: | |