Hi,
i write a game that can exit() when some conditions
during the game are not met. The game runs in
fullscreen mode.
On Linux i can use printf() to display the reason,
it can be seen after the program exit()ed.
On Win32 i added some functionality to pop up a
MessageBox(). I use SDL-1.2.10. When the
MessageBox pops up, the Game is not seen any more
and the MessageBox is in the background.
Is there a way on Win32 to use a MessageBox to
display an error message before exit()ing?
Best regards,
Torsten.
Hello Torsten,
Wednesday, May 17, 2006, 10:33:18 PM, you wrote:
TM> Hi,
TM> i write a game that can exit() when some conditions
TM> during the game are not met. The game runs in
TM> fullscreen mode.
TM> On Linux i can use printf() to display the reason,
TM> it can be seen after the program exit()ed.
TM> On Win32 i added some functionality to pop up a
TM> MessageBox(). I use SDL-1.2.10. When the
TM> MessageBox pops up, the Game is not seen any more
TM> and the MessageBox is in the background.
TM> Is there a way on Win32 to use a MessageBox to
TM> display an error message before exit()ing?
Make your own function that does SDL_Quit(), shows the dialog, then calls
exit() ?–
Best regards,
Peter mailto:@Peter_Mulholland
Hi,
Make your own function that does SDL_Quit(), shows the dialog, then calls
exit() ?
that’s a good idea, i’ll try that.
Best regards,
Torsten.