> I have a .NET class that's COMVisible(true) and it has a method
> that takes an object (VARIANT*) argument.
[quoted text clipped - 12 lines]
> Is there an easier (read: built in) way of getting the default
> property from a __ComObject?
Via reflection (which in turn uses IDispatch):
comObject.GetType().InvokeMember(
"", // -> default member
BindingFlags.InvokeMethod,
null,
comObject,
null
);
bye
Rob
Chad Myers - 24 Sep 2004 00:01 GMT
> > <snip>
> >
[quoted text clipped - 10 lines]
> null
> );
So much simpler! Thank you for the quick reply.
Works like a champ.
Thanks again,
Chad