Interfacing with C functions

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

Interfacing with C functions

Unread post by backtracking » 11 May 2020 17:05

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: 1672
Joined: 28 Feb 2000 0:01

Re: Interfacing with C functions

Unread post by Thomas Linder Puls » 12 May 2020 16:08

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 » 13 May 2020 15:03

Thank you for the information.

Post Reply