[fpc-pascal] passing "array of const" into cdecl procvar

Sven Barth pascaldragon at googlemail.com
Fri May 13 23:50:22 CEST 2016


Am 13.05.2016 21:47 schrieb "Maciej Izak" <hnb.code at gmail.com>:
>
> 2016-05-13 17:58 GMT+02:00 Seth Grover <sethdgrover at gmail.com>:
>>
>> How can I do this? Is there any way for me to pass an array of const
argument through directly to a cdecl'ed procvar call?
>
>
> Sven is wrong, of course you can, but it requires some work. Maybe not
much multi-platform and in few cases limited but works fine for x86 on
Windows.

I probably should have written "short answer" and "long answer". The short
answer is - as I wrote - no it's not possible. The long answer is that it's
possible, but only with quote some effort - as shown with the link you
provided.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160513/de80146a/attachment.html>


More information about the fpc-pascal mailing list