getting Delphi to accept a passed-in VBScript 'ByRef Variant' as a file handle or similar



G'day all,

How do I do this? Or is it a case of DON'T!

set o = createobject( "project.class" )
Set oStream = oFSO.OpenTextFile("c:\trace.log", CONST_READ, False,
AS_SYSTEMDEFAULT )
res = o.method( oStream )

So I'm passing a 'ByRef Variant' into my Delphi COM DLL. What I'd like
to do is to read from that stream. How do I get Delphi to accept the
'ByRef Variant' as a file handle or similar?

Kind regards,
Bruce.

.



Relevant Pages

  • VBScript to Delphi: passing an opened stream object?
    ... in Delphi. ... So I'm passing a text file stream object, ... 'ByRef Variant' into my Delphi COM DLL. ...
    (microsoft.public.scripting.vbscript)
  • Re: beginner for Delphi
    ... As you learn Delphi, ... Res wrote: ... > I have zero programming knowledge. ... I cannot find Delphi classes in my area. ...
    (alt.comp.lang.borland-delphi)
  • Re: beginner for Delphi
    ... Res wrote: ... > I really really need to learn Delphi 5 to support a program that has been ... > I have zero programming knowledge. ... I cannot find Delphi classes in my area. ...
    (alt.comp.lang.borland-delphi)
  • Re: beginner for Delphi
    ... "Res" wrote in message ... > I really really need to learn Delphi 5 to support a program that has been ... I cannot find Delphi classes in my ... This is a very good book for beginners and comes with a copy of ...
    (alt.comp.lang.borland-delphi)
  • Re: "frozen" app
    ... How's this done in lazarus or ... In Delphi, you can call 'Application.ProcessMessages' periodically to in a ... cpu-intensive loop. ... res:= WinApi.DispatchMessageA ...
    (comp.lang.pascal.misc)