I use a DLL in Delphi. With Delphi 2005 everything works. With Delphi 10.3 I do not get any results in “rc_getback” from a function call. The integration of the DLL with LoadLibrary works. I also get reactions with simple calls. Only the call “tcs_buch_xwork” below does not return any results.

This ist the function in the DLL

tcs_buch_xwork : function (wert: pointer; plz: pointer; pzart: integer; dummy: integer; rc_getback: pointer; ref:pointer) : smallint;stdcall;

I get the address for the call

@tcs_buch_xwork := GetProcAddress(NameHandle, ‘tcs_buch_xwork’);

This is how I use the function: DLLFehler means DLLerror

if @tcs_buch_xwork <> nil then

DLLFehler := tcs_buch_xwork (ps, pplz, cc, dummy, @rc_getback, pNameFehler);

1 Spice up

I’m not going to be any help because i have no dll experience, but it’s nice to see a Delphi person around. Are you using smallint in other calls? Not sure why, but that is sticking out to me.