I use WGL to create a rendering context:

m_hRC = wglCreateContext(m_hDC);

It does not return NULL so it should have work, right?

After that I try to make this context current:

wglMakeCurrent(m_hDC, m_hRC);

After that I get the following debug error message:

WGL Message:System Error: (26):wglDrvCliSetContext

And nothing is drawn then.

Does anybody knnow what this error message means? Or does anybody know where I could get the meaning of theWGL error codes? That would be great Thank you in advance for any help!

m_hDC=GetDC (hwnd);

Thanks for your reply! I found the error. It was a driver bug

Thank you anyway!