From Lesta@t-online.de  Mon Aug 30 22:18:21 1999
Received: from mailout06.btx.dtag.de (mailout06.btx.dtag.de [194.25.2.154])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id WAA16345
	for <prolog@swi.psy.uva.nl>; Mon, 30 Aug 1999 22:18:19 +0200 (MET DST)
Received: from fwd07.btx.dtag.de ([194.25.2.167])
	by mailout06.btx.dtag.de with smtp 
	id 11LXs3-0005pc-00; Mon, 30 Aug 1999 22:17:39 +0200
Received: from t-online.de (05121269112-0001(btxid)@[193.159.71.61]) 
	by fwd07.btx.dtag.de with smtp
	id <m11LXrt-0002BpC>; Mon, 30 Aug 1999 22:17:29 +0200
Message-ID: <37CAE63B.3F10D1@t-online.de>
Date: Mon, 30 Aug 1999 22:14:51 +0200
X-Mailer: Mozilla 4.05 [de]C-DT  (Win95; I)
MIME-Version: 1.0
To: afreitas@imes.com.br
CC: "prolog@swi.psy.uva.nl" <prolog@swi.psy.uva.nl>
Subject: Re: load_foreign_library
References: <37CAB879.2D1DC11D@imes.com.br>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: 05121269112-0001@t-online.de
From: Lesta@t-online.de (Uwe Lesta)

Aparecido Valdemir de Freitas schrieb:
> 
> Hello,
> 
<snip>
> But, I have a little problem!
> 
> I wrote an source .pl called teste1.pl,  with the instructions.
>     load_foreign_library(dlltest).
>     disp :- say_hello('*** This is a DLL - test ***').
> 
> I put this file on the same directory of ..\pl\bin, and I execute the
> commands:
> 
> 1. plwin
> 2. ?- consult(teste1).
>     teste1 compiled, 0.00 sec, 1,020 bytes.
>     yes
> 3. ?- disp.
>     [WARNING: Undefined procedure: say_hello/1]
>          Exception: (   8) say_hello('**** DLL test **** ') ?
> 
> The load_foreign_library runs correctly on interactive environment, but
> when I put this predicate inside a .pl source, the DLL was not loaded.

Have you really load the forigin library ?
try 
--

:- load_foreign_library(dlltest).
 disp :- say_hello('*** This is a DLL - test ***').

:-disp.
 
-- 


Regards

Uwe
Lesta@t-online.de

