My source code seems right. I don't know what the problem is. Nothing would appear.
My source code seems right. I don't know what the problem is. Nothing would appear.
Okay, I fixed it. Take out our BeginPaint and EndPaint from your RenderScene function. Move those functions to WM_PAINT message. All you need to do in that message is beginpaint and then immediately endpaint. It's important so do it. Then your RenderScene should look like this:
Good luck.Code:VOID RenderScenery( ) { DisplayBitmap(GetDC(WIN_HANDLE), bRect, 0, 0, 50, 50); }
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
You should call ReleaseDC before you return from the function.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }