Problem with MFC

I write a OpenGL-Program in SDI. If I animate an object, the screen flickers.
Can anybody tell me, how I eliminate this
flickers.

You can get the answer from searching this forum, or faq.

Most likely you need to use double buffering and glSwapBuffers. That way the world isn’t watching while you’re drawing, it just sees the finished product.

Your problem may be more than that. Override CView::OnEraseBkgrnd and have it return TRUE. This will prevent Windows from clearing your screen for you before you start drawing.