Archived

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

ZomeonE

Debug Error!!!

Recommended Posts

logistix    122
first off try

FAILED(lpdd4->SetDisplayMode(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP))

instead of

lpdd4->SetDisplayMode(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP)!=DD_OK

You might have a non-fatal warning, anyway its good practice

Share this post


Link to post
Share on other sites
ZomeonE    122
Why does this create a debug error???:::


if (lpdd4->SetDisplayMode(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP)!=DD_OK)
MessageBox(main_window_handle, "Unable to set display mode 640x480x16", "Error", MB_OK);

Share this post


Link to post
Share on other sites