Importing a 3rd Party windows DLL for use within th Python

sturlamolden sturlamolden at yahoo.no
Fri Apr 4 19:19:03 EDT 2008


On Apr 5, 12:58 am, lee.walc... at gmail.com wrote:

> Is it possible for someone to provide the information on the steps
> necessary to access this DLL and treat it like any other pyd library?
> Maybe there is already a tutorial available for performing this task?
> Is this task straight forward?

Short answer: Read the ctypes tutorial and reference.

http://python.net/crew/theller/ctypes/tutorial.html
http://python.net/crew/theller/ctypes/reference.html


Other options:
- Write a pyd wrapper manually in C
- Write a pyd wrapper using Pyrex or Cython
- Write a pyd wrapper using Swig
- Write a pyd wrapper using Boost.Python or PyCXX
- Inline C++ using scipy.weave















More information about the Python-list mailing list