🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Debug Error!!!

Started by
1 comment, last by ZomeonE 24 years, 6 months ago
Debug error:

The value of ESP was not properly saved across a function call.

Advertisement
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);

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

-the logistical one-http://members.bellatlantic.net/~olsongt

This topic is closed to new replies.

Advertisement