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?)

[clip]
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
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to