From: Mike C. Fletcher <mcfletch@vr...> - 2007-02-18 20:38:26
Jason Ward wrote:
> Will ctypes work on any dll. ie One that is not written in C or C++?
> Like will I be able to write a DLL in assembler and ctypes can still
> read it.
I believe you need to use the "C" calling convention in your interfaces
(i.e. extern C or whatever the equivalent is in assembler). Haven't
done enough assembler to know what that would involve in coding your
DLL. ctypes doesn't AFAIK work with C++-coded DLLs unless they happen
to provide a C interface... and I'm not even sure it would work then
(name mangling might cause problems).
Probably better to ask on ctypes-users than PyOpenGL-users for this kind
of question, probably only 5 or 6 of us here use ctypes directly, after all.
Mike C. Fletcher
Designer, VR Plumber, Coder