From p.singleton@keele.ac.uk Wed Feb 28 19:16:36 2001
Received: from scooby.lineone.net (doggy.lineone.net [194.75.152.224])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f1SIGaZ08979
	for <prolog@swi.psy.uva.nl>; Wed, 28 Feb 2001 19:16:36 +0100 (MET)
Received: from keele.ac.uk (host62-6-101-104.dialup.lineone.co.uk [62.6.101.104])
	by scooby.lineone.net (8.9.3/8.9.3) with ESMTP id SAA29507
	for <prolog@swi.psy.uva.nl>; Wed, 28 Feb 2001 18:16:08 GMT
Message-ID: <3A9D3FF8.FA23BFCC@keele.ac.uk>
Date: Wed, 28 Feb 2001 18:14:16 +0000
From: Paul Singleton <p.singleton@keele.ac.uk>
Organization: SmartArts Computing Consultancy
X-Mailer: Mozilla 4.74 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: SWI Prolog <prolog@swi.psy.uva.nl>
Subject: Re: [SWIPL] Newbie question
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Jan Wielemaker wrote:

> On Wed, 28 Feb 2001, Joćo Mariz wrote:
> >
> >Is there a way of sending those warnnings that may appear when we
> >download a file with consult/1 predicate, to a file on the hard-disk?
> >...

> Depends a bit what you want.  If you simply want to store the session
> for later reference, use protocol/1.  If you want to redirect the
> error stream in general, you can do:
> 
>         open(myfile, write, Stream),
>         set_stream(Stream, alias(user_error)),
>         ...

I'm calling LIBPL.DLL from a Visual Basic program (or object); could I
set up a socket between VB and Prolog, and send user_output and user_error
to VB?

Paul Singleton
-- 
 _  _  Paul Singleton PhD CEng MBCS      tel:  01782 618379 (UK)
|_)(_` SmartArts Computing Consultancy   tel:  +44 1782 618379
|  ._) 36 Larchwood, Keele,            email:  p.singleton@keele.ac.uk
       Newcastle, Staffs  ST5 5BB  UK   road:  UK M6 J15 -> Keele Uni.

