From Lesta@t-online.de  Mon Jul 17 14:00:51 2000
Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id OAA11609
	for <prolog@swi.psy.uva.nl>; Mon, 17 Jul 2000 14:00:50 +0200 (MET DST)
Received: from fwd01.sul.t-online.com 
	by mailout03.sul.t-online.com with smtp 
	id 13E9Zv-00060W-01; Mon, 17 Jul 2000 14:00:55 +0200
Received: from t-online.de (05121269112-0001@[62.158.101.23]) by fwd01.sul.t-online.com
	with esmtp id 13E9Zo-201Kb2C; Mon, 17 Jul 2000 14:00:48 +0200
Message-ID: <3972F560.141EF931@t-online.de>
Date: Mon, 17 Jul 2000 14:00:32 +0200
From: Lesta@t-online.de (Uwe Lesta)
Organization: Lesta
X-Mailer: Mozilla 4.7 [de]C-DT  (WinNT; I)
X-Accept-Language: de,en
MIME-Version: 1.0
To: Christian Labrie <f.boies@videotron.ca>,
        swi prolog mailing list <prolog@swi.psy.uva.nl>
Subject: Re: C interface
References: <000a01bfedba$c72cb880$77d5c918@thebeast>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: 05121269112-0001@t-dialin.net

> Christian Labrie schrieb:
> 
> Hi, I'm a new subscriber to the list...
> 
> I'm currently working on a project at university and I'm going to create a interface in c++.

Ther is a C++ interface for SWI-Prolog and i like it very much. Search the file
	SWI-cpp.h 
in the latest distribution.
 
> I asked many peoples about linking prolog and C++/C with an interface, and most of the peoples directed me on this site and eventually on that mailing list...
 
> Unfortunatly, the C interface on the site does not seem to work, well I use Microsoft Visual c++ to compile, and I'm unable to work...
> 
> Still many errors and warnings...

It is easy for a consol application.
The main trouble for a MFC project is to rebind the IO streams of SWI-Prolog.
 
> If any of you have the functionnal project(source code) in C++ that links prolog and an C interface, please would you send it to me attached to the mail...

I'll have a small dirty project working with MSVC 6.0, the C interface  and SWI-Prolog 3.3.3.
If you send me a mail you can get it as it is or
if you like to wait a few days I'll can clean it up a little bit
and change it to the C++ interface


-- 


Regards

Uwe
Lesta@t-online.de

