Ok...I see now
Cheers, Jeremy Coulter
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 8 December 1998 11:01
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Activex HTML Responses
In your ASP/HTML file create a VBScript to fire the DLL. The script can be
fired at load or by some other event, eg a button click. Use the return
values from your DLL to write the HTML.
eg, (this is from memory of over a year ago so take it as you will).
<!
dim o
set o = CreateObject('MyServer.MyObject')
result = o.getsomeanswer;
response.write '<B>' + result + '</B>'
!>
Jeremy Coulter <[EMAIL PROTECTED]> on 08/12/98 08:18:40
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
cc: (bcc: Peter Jones/Logistics&Information
Technology/Christchurch/Foodstuffs)
Subject: RE: [DUG]: Activex HTML Responses
NOT quite the answer I was looking for......I already know how to call it,
What I WANT to know, is how do I generate the resulting HTML/ASP FROM the
results the dll returns.
I know how to add the data to an HTML/ASP file, BUT how does the browser
know about the file ??
if you know what I mean........
Thanks Jeremy Coulter
-----Original Message-----
From: Nic Wise [mailto:[EMAIL PROTECTED]]
Sent: Monday, 7 December 1998 23:37
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Activex HTML Responses
> > I have written an Activex DLL that goes and checks my POP server.
> > What I want to do, is have the results of what the DLL finds, i.e. who
the
> > sender was of a message, and the message subject, plus maybe some other
> > fields, be writtento an HTML (or ASP) file.
> > How would I go about this ?
>
> Hmmm. If you were using WebHub, you'd just use the COM
> macro to register and call your DLL, displaying the result text
> for particular properties in whatever layout you desire. There's
> quite a good page-counting example which comes with the
> WebHub trial version (http://www.href.com), and it's outlined
> pretty thoroughly in the help.
>
> I presume the same kind of mechanism exists for ASP
> scripts, but I don't know the details (nor if it is as easy). Nic
> will know.
>
If you can do it using CreateOLEObject or similar in Delphi, you could
do, in VBScript:
dim oObj
set oObj = server.createobject("myproject.myobject")
oObj.doSomething
set oObj = nothing
Dont forget that ALL variables MUST be VARIANT, OLEVARIANT or something
like that - not regular types.
Nic.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz