I'm interested:
When I import a function from a dynamic link library that is exported using the stdcall calling convention , is it necessary to add stdcall to external in Delphi since version 7?
i.e.
LIBNAME int __stdcall Foo(void);
a
function Foo: Integer; stdcall; external 'libname.dll';
or i can just leave
function Foo: Integer; external 'libname.dll';
IIRC will use stdcall by default, but I'm not 100% sure about this, your opinion is required.
EDIT
The question is related to the 32-bit library, Arno Bushes made a good point of view that for 64-bit, the calling convention is not taken into account, since there is only one.
source share