Making a DLL with python?
Gerald Klix
Gerald.Klix at klix.ch
Thu Mar 31 10:02:00 EST 2005
I think you can, as long as you have a C-Compiler available.
I used pyrex to embedd python into a Linux PAM-Module and
i used C-Types to embbed Python into a Windows DLL. With hindsight, the
pyrex solution was much fatser to develop and less complicated.
Pyrex provides an example.
Ctypes: http://starship.python.net/crew/theller/ctypes/
Pyrex: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
Feel free to ask, if you need a more complex example,
than the one, that comes with pyrex.
HTH,
Gerald
Larry Bates schrieb:
> I don't think you can make a .DLL (but someone else might).
>
> Why can't you use a COM server? MS seems to have written
> some pretty sophisticated software using COM objects.
> Almost all languages can dispatch a COM object easily.
>
> -Larry
>
> jppx1 at bigfoot.com wrote:
>
>>Can I use python to make a regular Windows DLL that will be called from
>>other programs?
>>
>>I know I can use the win32 extensions to make a COM server, but I need
>>a straight DLL.
>>
>>Regards,
>>Phillip
>>------------------------------------------------------------------------
>>Phillip Piper
>>A man's life does not consist in the abundance of his possessions
>>
--
GPG-Key: http://keyserver.veridis.com:11371/search?q=0xA140D634
More information about the Python-list
mailing list