Re: Help testing transparentBlt function (FIXED)
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Apr 03, 2001
- 411 views
------------EE12111035D23BA6 >> -----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 oh dear, I feel very stupid now :) Thanks for pointing it out :) I've attached a fixed version, which no longer "requires" win32lib :) Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying ------------EE12111035D23BA6 Content-Type: application/octet-stream; name="transparentBlt.exw" Content-Transfer-Encoding: base64