For managed code you can use a cast to serve as a QI call. Native code has
no way to do anything with the handle encapsulated by gcroot. They only
thing it offers is the ability to move the handle through native code and
data for later manipulation by managed code.
Ronald Laeremans
Visual C++ team
>I have a few C# .NET components which might implement one
> or several interfaces, let say I1, I2 and I3.
[quoted text clipped - 5 lines]
> to query for certain interface. How can I do that if I use gcroot
> template? Thanks.
Dave - 14 Jan 2005 03:09 GMT
Ronald,
Thank you for your response. Could you provide an example of
"cast serving as a QI call"
Thanks,
Dave
> For managed code you can use a cast to serve as a QI call. Native code has
> no way to do anything with the handle encapsulated by gcroot. They only
[quoted text clipped - 13 lines]
> > to query for certain interface. How can I do that if I use gcroot
> > template? Thanks.