From jan@swi.psy.uva.nl Wed Mar 28 09:59:53 2001
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f2S7xr303006;
	Wed, 28 Mar 2001 09:59:53 +0200 (MET DST)
Received: from localhost (localhost [[UNIX: localhost]])
	by gollem.swi.psy.uva.nl (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) id f2S7xqH28108;
	Wed, 28 Mar 2001 09:59:52 +0200
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Organization: SWI, University of Amsterdam
To: "Deja User" <rajano@my-deja.com>, prolog@swi.psy.uva.nl
Subject: Re: [SWIPL] Swi-Prolog and Builder
Date: Wed, 28 Mar 2001 09:52:02 +0200
X-Mailer: KMail [version 1.0.29.2]
Content-Type: text/plain
References: <200103271805.KAA08428@mail25.bigmailbox.com>
In-Reply-To: <200103271805.KAA08428@mail25.bigmailbox.com>
MIME-Version: 1.0
Message-Id: <01032809595200.27917@gollem>
Content-Transfer-Encoding: 8bit

On Tue, 27 Mar 2001, Deja User wrote:
>Hello !
>I`m trying to use Swi-Prolog and Borland Builder. I got it work when I
>loaded libpl.dll with loadlibrary. But is there a function wich
>loads/consults prolog file like LoadXPL amzi has.
>Has anybody used prolog with builder or knows any resources ?

If you are novice and expect a high-level interface, please have
a look at the C++ interface, for which you find the include file
in include/SWI-cpp.h and the documentation in doc/packages/pl2cpp.html

I've got no idea whether all this works with Borland.  Normally you
attach the libpl.lib to your C/C++ project to get access to the Prolog
engine.

B.t.w.  In many cases it is much easier to turn your C/C++ code into
a DLL and load that into Prolog using load_foreign_library/1.

If you found out about using Borland, please start a section on the
Prolog Twiki web (that already contains quite some information on
using SWI-Prolog with foreign code on different platforms).

	--- Jan

