race condition (sort of)? message box verus function return

"speartip" <[email protected]> Sun, 12 Feb 2017 17:30:03 +0000
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
Hi, my message box is appearing before function return before it...

Code:

cout<<"Call_SDL_GetCurrentDisplayMode"<<endl;
    call_getCurrentDisplayMode(horizontal, vertical, &dm);
    cout<< horizontal << "\t"<< vertical << '\n';

    MessageBox(0,"ScreenTest", "Ready?", MB_OK);



Well screentest pops up, and when I press "Ok", the horizontal and vertical are then printed. I can live with it -- jut wanted to know whether this is a permanent condition or whether there wa a workaround.

Thx

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org