[Prev][Next][Index][Thread]

Re: how to set null <variant> args in OLE calls using FO Dylan



"John Whittaker" <johncwhi@earthlink.net> writes:

> I have tried calling this like this:
> 
> IWebBrowser2/Navigate($0, "www.yahoo.com", $2, $2, $2, $2);
> 
> where $0 is an instance of <iwebbrowser2>  and $2 is what I thought was a
> null variant type object created thusly:

Try this:

  let optional :: <lpvariant> = make(<lpvariant>);
  IWebBrowser2/Navigate($0, 
                        "www.yahoo.com", 
                        optional, 
                        optional, 
                        optional, 
                        optional);    


This is what I use in my web browser example:

http://www.double.co.nz/dylan/projects/simplewebbrowser.htm

Chris.
-- 
http://www.double.co.nz/dylan



References: