speartip
2017-02-12 17:30:03 UTC
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
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