RE: Win32::OLE - "Member not found" in PROPERTYPUTREF

"Ludwig, Michael" <[email protected]>
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <[email protected]>
> -----Original Message-----
> From: Ludwig, Michael

> Quoted from the web:
> 
>   this looks like an indexed property.  The correct syntax
>   to assign to them would be
> 
>     $COMComponent->LetProperty("Value", "Identity", $varUserStr);

> So I tried the following and it worked:
> 
>   $xslProc->LetProperty( input => $xmlDoc );

> I haven't understood the underlying issue, though. Is it that JScript 
> handles different cases transparently that require different syntaxes 
> in Perl and Visual Basic? Pointers welcome.

Using oleview.exe (from the ResKit) and the ITypeLib Viewer, I've
extracted the following info:

          \,,,/
          (o o)
------oOOo-(_)-oOOo------
(1) interface IXMLDOMDocument, async property:
[id(0x0000003d), propput, helpstring("flag for asynchronous download")]
HRESULT async([in] VARIANT_BOOL isAsync);

(2) interface IXSLProcessor, input property:
[id(0x00000002), propput, helpstring("XML input tree to transform")]
HRESULT input([in] VARIANT pVar);
-------------------------

Consider the following in Perl:

  $dom->{async} = 1;                        # correct
  $xslProc->{input} = $xmlDoc;              # error
  $xslProc->LetProperty(input => $xmlDoc);  # correct

Is there anything in the type viewer information telling me which syntax
to use in each instance?

-- 
Michael Ludwig
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.