~CGameProgrammer( );
Developer Image Exchange -- New Features: Upload screenshots of your games (size is unlimited) and upload the game itself (up to 10MB). Free. No registration needed.
Well, nothing seems to be working, (other then the ''reinstall'', havn''t tried that yet.)
I fixed the UNIT problem, no dice. I hate windows 95, i really do. My WINVER is 0X400, and i tried changing that in the windows header and, yeah, no dice.
Well damn, thanx for trying anywho! I appretiate it!
------------------------------------------VOTE Patrick O'GradyWrite in Presidential CandidateThe Candidate who Cares.
And you are not creating a window. RegisterClassEx only registrs a window class. You have to use CreateWindow(Ex) to actually create a window of that class. So, don't try to assign the return value of RegisterClassEx to the HWND variable (it returns an ATOM, check it, if it's zero registration failed).
[edited by - Dactylos on April 29, 2002 5:46:56 PM]
quote:
Original post by Antion Umm, I could be wrong, but since WndProc is being defined before the winmain, it is not prototyped, thus it should not have a semi-colon at the end of it. It is a function on its own.
Huh? What are you talking about?
A prototype is recognised by its lack of function body, not wether it ends with a semi-colon or not. A function definition can optionally end with a semi-colon.
quote:
Original post by Dactylos Shouldn''t that be MSG instead of MESSAGE?
And you are not creating a window. RegisterClassEx only registrs a window class. You have to use CreateWindow(Ex) to actually create a window of that class. So, don''t try to assign the return value of RegisterClassEx to the HWND variable (it returns an ATOM, check it, if it''s zero registration failed).
[edited by - Dactylos on April 29, 2002 5:46:56 PM]
YOU RULE. That fixed the problem, and it was my fault! I totally forgot to create the window, and use the proper type. I am trying to do it by memory, so it gets kinda hard...
Thanks a lot!
------------------------------------------VOTE Patrick O'GradyWrite in Presidential CandidateThe Candidate who Cares.