Page 1 of 1

Interfacing with C functions

Posted: 11 May 2020 17:05
by backtracking
Where may I found in the documentation of Visual Prolog the way to call a C-function from Visual-Prolog. I remember that Turbo-Prolog from Borland had this capability with the support of several different input/output parameters signatures.

Re: Interfacing with C functions

Posted: 12 May 2020 16:08
by Thomas Linder Puls
The C-function(s) should be exported from a DLL. You can find some documentation here Foreign Language Code.

To handle several flows you will have to use different link names for each flow, and each link name should then match a corresponding external function.

Re: Interfacing with C functions

Posted: 13 May 2020 15:03
by backtracking
Thank you for the information.