Discussions related to Visual Prolog
backtracking
Posts: 4
Joined: 11 May 2020 16:51

Interfacing with C functions

Unread post 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.
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Re: Interfacing with C functions

Unread post 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.
Regards Thomas Linder Puls
PDC
backtracking
Posts: 4
Joined: 11 May 2020 16:51

Re: Interfacing with C functions

Unread post by backtracking »

Thank you for the information.
Post Reply