View Full Version : help for the beginner

06-20-2000, 08:57 AM
what is the reason that CreateCompatibleDC()
gives me the error code 87?

Thanks for your help!

El Jefe
06-20-2000, 10:36 AM
MSDN documentation states the following:

If the function succeeds, the return value is the handle to a memory DC.

If the function fails, the return value is NULL.

Windows NT/ 2000: To get extended error information, call GetLastError.

Are you sure it's really an error and not the value of the DC itself?

[This message has been edited by El Jefe (edited 06-20-2000).]

06-20-2000, 12:19 PM
No, I get the error number 87 when I use
@err in the debug window