What would cause RegisterClassEx() to fail when...

Started by
3 comments, last by cclements 22 years, 9 months ago
Gurus, I am writing a base WIN32 application to anchor my game to. Using the step thru debugger I have noticed that my application fails to register the window class as below. if(!RegisterClassEx(&winclass)) return(0); Here my program exits WinMain and I am left scratching my head. However, if I change to the older RegisterClass() function and make the appropriate changes to the winclass members, it works great! Does anyone know what may prevent the RegisterClassEx() from registering my class when RegisterClass() will? Thanks in advance. Edited by - cclements on June 22, 2001 12:12:39 AM
No signature files!!! =)
Advertisement
WNDCLASSEX has a cbSize member, make sure you set that to sizeof(WNDCLASSEX).

That''s all I can think of.

War Worlds - A 3D Real-Time Strategy game in development.
Dean,

That was it! You hit the nail on the head. Thanks so much for the help!

--Chris

btw I am about to check out your project War Worlds.
No signature files!!! =)
geee
if you forget this kind of stuff to fill in
i don''t want to see how many bugs you''ll get in your games
pay attension man!

don''t be lazy, if you write it then write it perfectly!

Arkon
[QSoft Systems]
Thanks for the support Arkon.

--Chris
No signature files!!! =)

This topic is closed to new replies.

Advertisement