Calling C Function Pointers from Python

Janos Blazi jblazi at vipsurf.de
Sun Jul 30 07:15:55 EDT 2000


Neil Hodgson <neilh at scintilla.org> schrieb in im Newsbeitrag:
Uwug5.15044$4p3.118240 at news-server.bigpond.net.au...
> > I am currently in the middle of hooking up a large external C++ library
by
> > maintaining a database of C++ function pointers that I will call from
> Python.
> > If anybody has tried this before, my question is: Is there a good way to
> call
> > these function pointers without having to wrap every single one in a
> Python-C
> > module? The only package I know of that might do this job is libffi, but
> it
> > only runs on Unix, not on Windows.
>
>    Sam Rushing's calldll/windll can call arbitrary function pointers from
> Python.
>
> http://www.nightmare.com/software.html
>
>    No type checking, no safety, no warranties.
>
>    Neil

Can somebody tell me, how a dll call from Python works on principal? Let us
suppose I'd like to something like caldll. Where should I start. Which
Python "primitives" have I to use?

Janos Blazi




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list