Original Post
Hi guys, when I initialize my fullscreen app I want to show a MessageBox() if it fails but it's not showing.
I tried GetDesktopWindow() and NULL for the first param to MessageBox(). If initSomeStuff() fails it shows fine, but not for the following two tests (because D3D is setup in fullscreen at that point.)
Please help.
hWnd=CreateWindow(...);
if(!initSomeStuff())
goto cleanup;
if(!initD3D())
goto cleanup;
if(!initOtherStuff())
goto cleanup;
// message pump here
cleanup:
MessageBox(hWnd,"error","error",MB_OK);
I tried GetDesktopWindow() and NULL for the first param to MessageBox(). If initSomeStuff() fails it shows fine, but not for the following two tests (because D3D is setup in fullscreen at that point.)
Please help.