This directory contains examples of how to use a Dynamic Link Library (DLL) created with Visual Prolog in Borland Delphi (see Using Visual Prolog DLL’s from other languages for an overview of the examples)
All these examples uses the same Visual Prolog DLL’s that are found in the DLLS directory, so these have to be compiled before any of the examples are compiled and run.
These examples should be compiled with Borland Delphi 3.0 or later.
Please also read the common notes.
procedure - if the predicate does not have a return value, and
function - if the predicate has a return value
Visual Prolog |
Delphi |
integer |
Integer |
real |
Double |
long |
Longint |
string |
Pchar |
Visual Prolog |
Delphi |
getReal(real) - (o) |
getReal(var OutReal: Double) |
NONGUI: Delphi project uses a non-GUI Visual Prolog DLL.
USEVPI: Delphi project uses a Visual Prolog DLL with VPI.