Skip to main content
gamedev.net
🔒 Locked

CreateWindow Fails

Started by EEROOKIE Oct 27, 2002 at 11:21 AM 1 replies 500+ views
Original Post
EEROOKIE
EEROOKIE
When I try to use CreateWindow, the command fails. A subsequent call to GetLastError returns 131, which the documentation lists as seek past the beginning of a file. Does this make sense to anyone?
niyaw
niyaw
compare your wndproc with one that is known to work. a possible problem is you not returning the value returned by DefWindowProc when you call it.
Ivko
Ivko
I think that if you try to create a window class and then create the window all in a class''s constructor, the CreateWindow will fail. I''ve had this problem. Make the constructor register the window class, then create the window afterwards, once the WndProc is accessible and the window class is registered properly.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.