From afreitas@imes.com.br  Fri Aug 27 14:32:42 1999
Received: from imes.com.br ([200.245.82.129])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id OAA04124
	for <prolog@swi.psy.uva.nl>; Fri, 27 Aug 1999 14:32:36 +0200 (MET DST)
Received: from l0w9f8 (pppremoto15 [200.245.82.111]) by imes.com.br (8.7.1/8.7.1) with ESMTP id JAA06591; Fri, 27 Aug 1999 09:34:23 -0300 (EST)
Message-ID: <37C6857D.1A8ACCA1@imes.com.br>
Date: Fri, 27 Aug 1999 09:33:01 -0300
From: Aparecido Valdemir de Freitas <afreitas@imes.com.br>
Reply-To: afreitas@imes.com.br
X-Mailer: Mozilla 4.01 [en] (Win95; I)
MIME-Version: 1.0
To: "prolog@swi.psy.uva.nl" <prolog@swi.psy.uva.nl>,
        "prolog@swi.psy.uva.nl" <prolog@swi.psy.uva.nl>
CC: afreitas@imes.com.br
Subject: DLL - Interface
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,
I am writing an interface that help to programmer to develop a program
with several programming paradigms.

I wrote a DLL program (in C language) that writes or reads an
information (such as, integer number) in a shared area of the
environment. This program is OK.

I write a SWI-Prolog 3.2 that process the factorial of a number. I would
like that the result of my Prolog program would be write in this shared
area. I would like to substitute the predicate write(F) in my SWI-Prolog
by a call of my DLL that would be the work of write the result F in a
shared area of my environment.

So, I need to call this DLL (wrote in C) from my SWI-Prolog.

Somebody could me help!

Thank you!

Aparecido Valdemir de Freitas
afreitas@imes.com.br



