Discussion:
CreateCompatibleDC fails
(too old to reply)
ashutosh
2008-05-14 14:30:49 UTC
Permalink
Hi,

I am facing problem in using CreateCompatibleDC(NULL) in 64 bit OS.
When i try to print some document using Quicken Application, this API
returns null (hence fails), but with the same document when i try to
print with 32 bit OS (XP or Vista) its passing and returning suitable
handle.
Can anybody please tell me why its happening and is there any way i
can rectify this defect?
Can i substitute any other API with this api? I do not have handle to
current DC.
ashutosh
2008-05-15 04:39:12 UTC
Permalink
Post by ashutosh
Hi,
I am facing problem in using CreateCompatibleDC(NULL) in 64 bit OS.
When i try to print some document using Quicken Application, this API
returns null (hence fails), but with the same document when i try to
print with 32 bit OS (XP or Vista) its passing and returning suitable
handle.
Can anybody please tell me why its happening and is there any way i
can rectify this defect?
Can i substitute any other API with this api? I do not have handle to
current DC.
Can anybody please answer me?

Loading...