🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Wait Cursor Problem

Started by
11 comments, last by Matthew Allen 24 years, 5 months ago
Thanks for the reply, even though I can''t say that it''s really helped yet. It HAS made me look at that part of my code a bit more, though. Maybe you could look at my code and help some more? This is the main part of my WinMain(). Is it what it should be?

while ( TRUE )
{
while ( PeekMessage( &message, NULL, 0, 0, PM_NOREMOVE ) == TRUE )
{
if ( GetMessage( &message, NULL, 0, 0 ) )
{
TranslateMessage( &message );
DispatchMessage( &message );
}
else
return TRUE;
}

if ( bActive )
if ( game_Main() == FALSE )
return sys_Error( "game_Main FAILED", "WinMain" );
}

The game_Main() function does the math for the game, draws the frame, and then returns. It isn''t a continuous loop; it allows for the processing of messages. Could it be in WindowProc()? In there, it''s basically a huge switch which breaks to the end after processing a message and returns with:
return DefWindowProc( hwnd, message, wParam, lParam );

Thanks again for the help!

- mallen22@concentric.net
- http://mxf_entertainment.tripod.com/
Advertisement
I havn''t read through all the replies, so I may just be acting ignorant. But this caught my eye:

wc.hCursor = LoadCursor( hInstance, "IDC_ARROW" );

should probably be

wc.hCursor = LoadCursor( hInstance, IDC_ARROW );

Then again that would not likely compile at all, so it was most likely a typo Oh well.
Just because the church was wrong doesn't mean Galileo wasn't a heretic.It just means he was a heretic who was right.
I was thinking the same thing, atavist. It doesn''t seem to matter at all which one I do. It''s very silly, really.

- mallen22@concentric.net
- http://mxf_entertainment.tripod.com/

This topic is closed to new replies.

Advertisement