From d_bennett62@msn.com Thu Sep 27 16:34:09 2001
Received: from cpimssmtpu08.email.msn.com (cpimssmtpu08.email.msn.com [207.46.181.83])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f8REY9v06768
	for <prolog@swi.psy.uva.nl>; Thu, 27 Sep 2001 16:34:09 +0200 (MET DST)
Received: from dbpclaptop ([63.14.53.94]) by cpimssmtpu08.email.msn.com with Microsoft SMTPSVC(5.0.2195.3779);
	 Thu, 27 Sep 2001 07:33:26 -0700
Message-ID: <004a01c14761$3407a2c0$5e350e3f@dbpclaptop>
From: "David Bennett" <d_bennett62@msn.com>
To: "SWI Mailing List" <prolog@swi.psy.uva.nl>
References: <3.0.5.32.20010927223155.0226f600@mail.rhyme.com.au> <3.0.5.32.20010927223155.0226f600@mail.rhyme.com.au> <3.0.5.32.20010928000912.00b79400@mail.rhyme.com.au>
Subject: Re: [SWIPL] Extensions to ActiveX DLL
Date: Thu, 27 Sep 2001 08:32:12 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-OriginalArrivalTime: 27 Sep 2001 14:33:27.0737 (UTC) FILETIME=[5F2E8A90:01C14761]

I have a VB app that interfaces to SWI via the ActiveX DLL.   It works great
except on Windows ME.
1) It would be nice to have atoms passed in.  Until I figured out that atoms
were not passed in, I wasted a lot of time attempting to debug the problem.
2) A setting to change the default behavior would be a better way to handle
backwards compatibility.
3) When passing in atoms, there would be less conversion from strings to
atoms inside the Prolog Program (presumably more efficiency).
4) An update to the ActiveX would be nice (very much appreciated) since the
current one uses an older version of SWI.
5) On WinME and some Win2K's, the ActiveX fails to properly register, which
I think a recompile might help me with (maybe not, perhaps its O/S that is
the problem).
Thanks Philip!

----- Original Message -----
From: "Philip Warner" <pjw@rhyme.com.au>
To: "Jan Wielemaker" <jan@swi.psy.uva.nl>; "SWI Mailing List"
<prolog@swi.psy.uva.nl>
Sent: Thursday, September 27, 2001 8:09 AM
Subject: Re: [SWIPL] Extensions to ActiveX DLL


> At 15:47 27/09/01 +0200, Jan Wielemaker wrote:
> >>
> >>FWIW, there are two ways I am considering handling the atom/string input
> >>problem: (1) crudely - allow an atom to be passed on single quotes. ie.
> >>myAtom = "'name'" (the C-code will look for names containing
single-quotes)
> >>and (2) the hard way - implementing collection classes for the args,
with
> >>appropriate properties.
> >>
> >>At this stage, I am favoring the crude solution, since it is simple and
> >>does all that I need.
> >
> >Not that I use activeX, but this type of programming is dangerous.
> >Things I'm just passing along in variables suddenly gets transformed
> >into a string loosing the quotes, etc.
>
> It would be easy enough to add an attribute to the query object to say
> 'translate quoted strings to atoms', or perhaps, 'treat strings as atoms'
> would be better (see below).
>
> >
> >Also, why use strings at all?  SWI-Prolog atoms are unlimited
>
> I agree; the problem is that the ActiveX library uses strings by default.
> What I'm after is a way to treat the passed parameters as atoms, as you
> suggest. Are you suggesting that I should just modify the default
> behaviour? This, too, would satisfy my requirements, but will probably
> break existing apps - perhaps this can be a user setting.
>
> Does that sound better?
>
> At least with the user setting, nothing breaks, and the only problem
occurs
> if we want to pass in strings AND atoms, which seems pointless to me
>
>
> ----------------------------------------------------------------
> Philip Warner                    |     __---_____
> Albatross Consulting Pty. Ltd.   |----/       -  \
> (A.B.N. 75 008 659 498)          |          /(@)   ______---_
> Tel: (+61) 0500 83 82 81         |                 _________  \
> Fax: (+61) 0500 83 82 82         |                 ___________ |
> Http://www.rhyme.com.au          |                /           \|
>                                  |    --________--
> PGP key available upon request,  |  /
> and from pgp5.ai.mit.edu:11371   |/
>
>
> ----------------
> * 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/
>
>

