Page 1 of 1

Parameter Passing between Prolog DLL and C Function

Posted: 30 May 2021 5:30
by Rangarajan
Hi,
I would like to understand how to pass non-primitive data types between Prolog DLL and an external C program. For example, how to pass a list of symbols, or compound structures from the DLL to an external C function (and vice versa)? Is there a way to directly make use of Prolog Foundation Classes in the C environment (through VIP header and LIB files)?

Thanks for your help.

Regards,
Rangarajan

Re: Parameter Passing between Prolog DLL and C Function

Posted: 31 May 2021 8:32
by Thomas Linder Puls
I suggest you read Foreign Language Code.

The answer to your second question is: no.