[fpc-pascal] how to use procedure of object in C
Xiangrong Fang
xrfang at gmail.com
Mon Mar 9 16:20:31 CET 2015
Hi all,
I define a procedure like this:
type
TDataHandler = procedure(data: Pointer) of object;
procedure SetHandler(h: TDataHandler); external cdecl;
Now, can I implement SetHandler in a library written in C, then call h in C?
Thankyou.
--
Sent from Gmail Mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150309/a927a0e1/attachment.html>
More information about the fpc-pascal
mailing list