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/
Wait Cursor Problem
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.
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/
- mallen22@concentric.net
- http://mxf_entertainment.tripod.com/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement