Home »
Public Forums »
archive »
Delphi written DLL for use with CALL_EXTERNAL
Delphi written DLL for use with CALL_EXTERNAL [message #35935] |
Tue, 29 July 2003 01:19 |
Dr. Ralph P. Schorn
Messages: 2 Registered: December 2001
|
Junior Member |
|
|
Hallo,
CALL_EXTERNAL uses the C calling convention and wants
parameters to be passed in the argc/argv syntax. I have
a Win32-DLL written in Delphi 6 that exports the
following function:
Function GetFloat ( VAR URL: ShortString;
VAR dim: LongInt;
VAR x: AbscissaType
): LongInt;
stdcall;
where the type "ShortString" is a fixed length (Pascal)
string of 255 characters, "LongInt" a signed 32 bit
integer and "Abscissa Type" a fixed length array of 32 bit
floating points (Delphi type "Single").
How must I convert this code to export the function in
argc/argv syntax, so that CALL_EXTERNAL can understand
the input? Anybody a solution or a piece of sample code
in Delphi?
Regards and thanks,
Ralph.
|
|
|
Current Time: Wed Oct 08 15:37:00 PDT 2025
Total time taken to generate the page: 0.00563 seconds