help for the beginner

what is the reason that CreateCompatibleDC()
gives me the error code 87?

Thanks for your help!

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).]

No, I get the error number 87 when I use
@err in the debug window