Archived

This topic is now archived and is closed to further replies.

peter86

Wait for messages and exit

Recommended Posts

Guest Anonymous Poster   
Guest Anonymous Poster


int main() {
int message_countdown=MAX_MESSAGES;

for(;message_countdown;message_countdown--) {
Get_Whatever_Message_Type_Peter86_Was_Talking_About_And_Do_Stuff_With_It();
}
}

Share this post


Link to post
Share on other sites
dalleboy    324

  
int WinMain()
{
MSG msg;
for (int i = 0; i < 100; ++i)
{
GetMessage(&msg, NULL, 0, 0);
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return 0;
}

Share this post


Link to post
Share on other sites
Stoffel    250
Hi, I'm Peter86, and I'm posting a vague problem which can be interpretted many ways and begging for code.

PS: I will criticize any replies that aren't exactly what I want.

For my next impression..

[edited by - Stoffel on October 22, 2002 4:32:35 PM]

Share this post


Link to post
Share on other sites
dalleboy    324
quote:
Original post by peter86
dalleboy, I didn''t ask for a message processing loop.

You must have missed my ''wink''
I think you should rewrite your question and be more precise. What are you really looking for? My post answers your original question, at least how I interpreted it.

Share this post


Link to post
Share on other sites