I have a COM component with a property defined like this (IDL):
[propput, id(30), helpstring("property TestSuite")] HRESULT
TestSuite([in] IUnknown *pVal);
[propget, id(30), helpstring("property TestSuite")] HRESULT
TestSuite([out, retval] IUnknown **ppVal);
..basically it gets/sets a dual interface object that is implemented in
a different COM component.
Using Win32::OLE, it doesn't let me do a normal property assignment --
i.e. this fails:
$myObj->{TestSuite} = $someOtherObj;
..however, it DOES let me do by ref assigment:
$myObj->LetProperty('TestSuite', $someOtherObj);
Can someone explain why? I would prefer (for consistency with other
properties) to use the SetProperty style of assignment instead of
LetProperty - is there something I need to change in my IDL to make the
SetProperty style work?
Thanks,
Mike Ellery
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs