ctypes and delphi dll

Bernd Zimmermann zimmermann.edv at t-online.de
Tue Nov 19 17:18:36 EST 2002


I want to use a Delphi application - available as DLL - with
Python 2.2 and tried the 'cdll' as well as 'windll' interface.

The DLL exports only a single procedure expecting two
pointers to structures.

I can load the DLL and get the procedure handle. But
when invoking the prodedure, 'cdll' claims missing 8 Bytes
and exits, while 'windll' is silent but does not start the
application to work.

Is there a problem with DLLs written in Delphi? The DLL
is a couple of years old and worked fine when used with
Delphi-3.

Thanks for any help,
Bernd





More information about the Python-list mailing list