From xhuang@sdlintl.com  Fri Oct 20 12:52:10 2000
Received: from targa_server.dccchina.com ([168.160.249.133])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id MAA04371
	for <prolog@swi.psy.uva.nl>; Fri, 20 Oct 2000 12:52:05 +0200 (MET DST)
Message-Id: <200010201052.MAA04371@swi.psy.uva.nl>
Received: from compaq (somewhere.fmi.com [157.43.20.51]) by targa_server.dccchina.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2232.9)
	id 45ARZ46Q; Fri, 20 Oct 2000 18:42:47 +0800
Date: Fri, 20 Oct 2000 18:44:54 +0800
From: Xiuming Huang <xhuang@sdlintl.com>
To: "=?ISO-8859-1?Q?Jacinto_A._D=E1vila?=" <jacinto@ing.ula.ve>
CC: Prolog <prolog@swi.psy.uva.nl>
Subject: Re: Re: Executable File
Organization: SDL Beijing Office
X-mailer: FoxMail 3.0 beta 1 [cn]
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by swi.psy.uva.nl id MAA04371

Hi,

We are trying to run an SWI executable on our Web site and got the .exe working on a 
stand alone PC, but it won't work on the website, looking for the libpl.dll even if 
the .dll is already in the same directory. It seems that we'd need a COM object to 
make it work. Any hints on how to generate the COM object or convert the .exe to it?

Thanks in advance,

Xiuming

In 2000-10-8 14:50:00 you wrote:
>For MS-Windows:
>
>1.- Save your programa in a file, say test.pl.
>
>2.- load it into SWI-PROLOG plcon shell (not in plwin) ?[test].
>
>3.- Execute ?qsave_program(testing, [autoload=true, stand_alone=true,
>goal=main]).
>
>4.- By now, you should have an executable file called testing.exe
>in your working dir. Move that file to the cgi-dir of your
>web-server. Make sure that SWI library  libpl.dll, goes with it.
>(try to execute it from a DOS windows, to see if it´s ok). 
>
>5.- Run it the from Internet (provided, of course, you already
>have a running webserver)
>
>http://whereveryourserveris.com/scritps/testing.exe
>
>Jacinto A. Dávila
>
>On Fri, 6 Oct 2000, Oliver wrote:
>
>> Hi there,
>> 
>> Please, can anybody tell us how we can run the following program:
>> 
>>     main :-
>>         write('Content-type: text/html'), nl, nl,
>>         write('<HTML>'),
>>         write('Hello world.'),
>>         write('</HTML>').
>> 
>> in the WWW? We use SWI-Prolog. Do we need CGI? If yes, how can we make a
>> 
>> CGI-file?
>> 
>> So long,
>> 
>> Gerd
>> 
>> 
>> 
>> 
>> ----------------
>> * To UNSUBSCRIBE, please use the HTML form at
>> 
>>     http://www.swi.psy.uva.nl/projects/SWI-Prolog/index.html#mailinglist
>> 
>> or send mail to prolog-request@swi.psy.uva.nl using the Subject: "unsubscribe"
>> (without the quotes) and *no* message body.
>> 
>> ** An ARCHIVE of this list is maintained at
>> 
>>     http://www.swi.psy.uva.nl/projects/SWI-Prolog/mailinglist/archive/
>> 
>
>
>
>
>----------------
>* To UNSUBSCRIBE, please use the HTML form at
>
>    http://www.swi.psy.uva.nl/projects/SWI-Prolog/index.html#mailinglist
>
>or send mail to prolog-request@swi.psy.uva.nl using the Subject: "unsubscribe"
>(without the quotes) and *no* message body.
>
>** An ARCHIVE of this list is maintained at
>
>    http://www.swi.psy.uva.nl/projects/SWI-Prolog/mailinglist/archive/
>
>
>**********************************************************************
>This email and any files transmitted with it are confidential and
>intended solely for the use of the individual or entity to whom they
>are addressed. If you have received this email in error please notify
>the system manager.
>
>This footnote also confirms that this email message has been swept 
>for the presence of computer viruses.
>
>**********************************************************************




