ctypes and delphi dll

Thomas Heller theller at python.net
Fri Nov 22 12:05:44 EST 2002


Bernd Zimmermann <zimmermann.edv at t-online.de> writes:

> Thomas Heller wrote:
> 
> > Should ctypes support the pascal calling convention 'natively'?
> > Maybe later...
> 
> Thank you for your work on ctypes and for picking up this issue,
> Thomas.
> 
> Calling this Delphi DLL Procedure, declared as 'PASCAL', from
> Visual C++ 6.0, I had to re-arrange the arguments too. So 'ctypes'
> is in good company - and - compatible :-)

'Correct' would be better than 'compatible', I think.  OTOH, it is
easy to work around this as I showed you in my previous post.

Supporting PASCAL calling convention in ctypes' C code would be as
easy, IMO.  I will consider it.

Thomas



More information about the Python-list mailing list