DirectDraw has been deprecated for going on eight years now. I'm surprised you can even make it compile for a 64-bit target. If you need to blit bitmaps around, use Direct3D; it's faster, better, cheaper, and more supported than DirectDraw.
--
Jon Watte, Direct3D MVP
kW X-port 3ds Max .X exporter
14 days after getting my RROD box back, it's going back for service again. Grr.