RE: Help testing transparentBlt function

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

> -----Original Message-----
> From: Thomas Parslow (PatRat) [mailto:patrat at rat-software.com]

> It requires win32lib for a reason I haven't
> been able to figure out yet (i don't use any win32lib 
> functions but it just
> doesn't work if i don't include it).

You're testing for an error incorrectly.  From the docs on define_c_func:

... A small integer, known as a routine id, will be returned, or -1 if the
function can't be found....

The reason win32lib affected you is that it has already linked several
routines, so you're not getting 0 (which is a valid routine id).

Matt Lewis

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

Search



Quick Links

User menu

Not signed in.

Misc Menu