CreateCompatibleDC Failed

K

Kartik Narayanan

We are developing a monolithic printer driver and downloading fonts as
truetype download. In this code we are creating a memory context using
CreateCompatibleDC(NULL) and this call is failing in a case where "Enable
Advanced Printing Features" is unchecked in our printer driver advanced
properties.
GetLastError also gave 0 as error.

I have observed that this is happening only in x64 platform. We tested in
Win2003x64 and WinVistax64. Suprisingly in the UI module CreateComaptibleDC
has passed and when we are doing rendering module in the DrvSendPage(), this
call has failed.

Would you please tell us why this kind of behavior happens with EMF spooling
off.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top