Using swig to use an existing dll/library

Chris Lambacher lambacck at
Mon Jun 20 04:30:43 CEST 2005

You should be able to access regular dlls and handle callbacks with
the ctypes module without needing to resort to any real c code:


On 18 Jun 2005 02:10:59 -0700, peter.o.mueller at
<peter.o.mueller at> wrote:
> Hi together,
> i have a Windows DLL in C that is internally multithreaded and provides
> a callback function to signal specific events. As I understood one can
> use "normal" C-code with swig. Is it also possible to use existing
> DLLs? Does swig can also handel the callback method? If not - is there
> another wrapper toolkit that can do that?
> Thanks,
> Peter
> --

Christopher Lambacher
lambacck at

More information about the Python-list mailing list