O/H Vincent Snijders έγραψε:
Mark - WBIsoft.COM schreef:
I think the calling convention be STDCALL ?



IIRC, that is the same on win64.

Are you sure about this ?

AFAIK, they have opposite order of arguments in stack. In cdecl caller will clean up stack after the call (raise ESP) while in stdcall this is job of called function. I see no reason to change this because of 32\64\128 bit architecture of CPU.

Anyway, the calling convention for a Firebird UDF is still cdecl either for x86_64 or x86_32.

PS: Don't forget to use ib_util_malloc() from ib_util.dll to allocate memory for the UDF result string declared as FREE_IT.

regards,
--
Dimitrios Chr. Ioannidis
Firebird Project
http://www.firebirdsql.org


_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to