Win32Lib: getDC of a pixmap problem

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu