CreateCompatibleDC Failed

  • Thread starter Thread starter Kartik Narayanan
  • Start date Start date
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.
 
Back
Top