Access to C++ dlls from Python
bifferos <[email protected]> Fri, 29 Oct 2010 14:36:10 +0100 (BST)
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
I've been looking into the vtable layout used in MSVC and it seems
relatively straightforward to call object methods in a C++ DLL from
Python, however my understanding is that the 'this' pointer has to be
passed in ECX when making the call. I can see it wouldn't be so
hard to 'hack' this into libffi, but first wondered if there were
any other projects with code that already do this, or indeed any
plans to incorporate it into ctypes?
thanks,
Biff.
PS: Yes, I know there are a bunch of caveats regarding portability
but don't care.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev