🎉 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!

Pictures between my Levels

Started by
0 comments, last by Nordgeist 22 years, 6 months ago
Hello, id like to have pictures between my levels, and try that with the following code: if(Level)//Begin of the next level { Sleep(500); if(Blit_All(lpDDSBack,lpDDSBildeins,FALSE)==FALSE) return Error("tell something ect. Sleep(500); if(FAILED(lpDDSBildeins->ReleaseDC(hDC))) return Error("tell something lpDDSBildeins=NULL; Sleep(50); } So now every time when this function is called, the damn programm exits itself. Has anyone an idea what I´ve made wrong?
Advertisement
Near the end, you are releasing a DC, but you should no get a DC if you are blitting.

---
Make it work.
Make it right.
Make it fast.
"None of us learn in a vacuum; we all stand on the shoulders of giants such as Wirth and Knuth and thousands of others. Lend your shoulders to building the future!" - Michael Abrash[JavaGaming.org][The Java Tutorial][Slick][LWJGL][LWJGL Tutorials for NeHe][LWJGL Wiki][jMonkey Engine]

This topic is closed to new replies.

Advertisement