[Dream] A meta-wrapper module to interface any C dynamic library
hwlgw at hotmail.com
Fri Jul 4 19:26:05 CEST 2003
> [Seo Sanghyeon]
> To see is to believe.
> >>> import ctypes
> >>> loader = ctypes.cdll
> >>> dll = loader.msvcrt
> >>> sin = dll.sin
> >>> sin.argtypes = [ctypes.c_double]
> >>> sin.restype = ctypes.c_double
> >>> sin(3.14)
I love examples like this! And ctypes is very good, I downloaded the
.EXE installer and ran it and this example works "out of the box".
How do you know what functions are available in "dll"? Any general
More information about the Python-list