On 28/09/2019 23:52, Ozz Nixon wrote:
It's a CDECL thing... :-(

Disabled Using_CDECL, and now the pointer passes to/from the imported
functions. (Florian/Jonas/Michael - is this an expected issue on Windows?)

By default, Windows uses stdcall calling convention when calling externally defined subroutines in dynamic link libraries. It depends also if the dynamic link library uses stdcall calling convention, too.
Other platforms uses cdecl (unix/linux et al).

In your case it may be pascal default one calling convetion.

fpc-devel maillist  -  fpc-devel@lists.freepascal.org

Reply via email to