[fpc-pascal] cdecl or stdcall on WinCE for ARM

Adrian Veith adrian at veith-system.de
Fri Nov 23 13:07:17 CET 2007


Hi,

what is the right calling convention for using system libraries on wince 
for ARM ?

I wrote a pascal wrapper for a system dll and used stdcall for the 
calling convention - and the program worked.
I changed to cdecl - and the program works as well.

In my opinion the program should have crashed on one of the two.

Now I am puzzled.

Cheers,

Adrian.



More information about the fpc-pascal mailing list