Calling Function in DLL on Windows

dsavitsk dsavitsk at e-coli.net
Thu Jun 1 12:41:25 EDT 2000


> try Sam Rushing's windll/calldll stuff; should be findable at medusa
>
> Robin Becker

thanks for the suggestion

it looks like grabbing the calldll.pyd and windll.py files from sam rushing
at www.nightmare.com (both in dynwin.zip) will allow something like...

>>> from dynwin.windll import *
>>> # The DLL in qustion here is called
>>> # SFWLink.DLL. It is a connection to
>>> # a scanning engine for a NCS OMR Scanner
>>> mod1 = module('SFWLink') # Load's DLL
>>> mod1.LoadSFW('c:\\sfw\\', 'Param') # calls f(x)

This example is mostly from MHammond's Book where it is given about 1/2 of a
page.  He says to look at Sam's site.  Unfortunatly the documentation is not
really there for those of us who are new. MHammond also presents some
information on passing values ByRef.

As soon as i get to work with the hardware in question again (next week)
i'll put up a post on doing this, and how it works.





More information about the Python-list mailing list