Win32Lib: getDC of a pixmap problem
- Posted by "Brian K. Broker" <bkb at CNW.COM> Oct 07, 1999
- 496 views
Hope you're feeling better, David... I've got a problem that probably only you can answer. I'm in the process of wrapping up cards32.dll and making a library for creating windows card games. I'm making great progress but I am having one minor problem. To draw a card, the DLL requires a DC. I can draw cards to the window by using 'getDC( Window )' to pass to the C function but if I pass a pixmap (buffer) to 'getDC' I get an error: getDC:SelectObjct(pix) failed. (I added the (pix) to specify that it failed when trying to get the DC of a pixmap as opposed to a bitmap.) Does 'getDC' support getting the DC of a pixmap in this manner or have I stumbled upon a bug here? Thanks, Brian