[fpc-pascal] Array as result in function.
Sven Barth
pascaldragon at googlemail.com
Fri Jan 20 13:47:53 CET 2017
Am 20.01.2017 13:18 schrieb "fredvs" <fiens at hotmail.com>:
>
> Thanks very much for answers.
>
> @ silvioprog:
>
> > using that function as callback with some (C/C++) library?
>
> Yes and check its parameter calling convention is ok.
You shouldn't use Pascal arrays when interfacing with C/C++ code as
especially dynamic arrays have a different format (though you can pass a
pointer to the first array element).
Maybe show us how the original C function looks like.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170120/387e8711/attachment.html>
More information about the fpc-pascal
mailing list