[Tutor] Load DLL / library and run a thread from it

Kent Johnson kent37 at tds.net
Fri Jan 5 19:12:05 CET 2007


Jorgen Bodde wrote:
> Hi Guys,
> 
> I want to make a C++ DLL that spawns a thread, and wrap this with
> Python so that a thread still runs inside the DLL, but I can access
> methods to communicate with it, and preferrably receive callbacks from
> it.
> 
> I searched the net for examples explaining concepts like this, but I
> am lost. Is this possible or is it that trivial that nobody seems to
> explain it?

These might help:
http://effbot.org/pyfaq/how-do-i-interface-to-c-objects-from-python.htm
http://effbot.org/pyfaq/writing-c-is-hard-are-there-any-alternatives.htm

Kent



More information about the Tutor mailing list