>I'm getting a COM Object,
From where?
>but I'm not totally sure which COM Interface(s) it
>implements.
>
>How can I find this out?
You can use the appropriate language operator (is in C#, TypeOf .. Is
in VB) to check if a certain interface is implemented.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
David Jessee - 22 Mar 2005 22:29 GMT
That won't necessarily work for me, because I may or may not have com
wrappers already created for the COM interface. I currently have a
System.__ComObject
I get the Feeling that I'll have to go through the
System.Runtime.Interip.Marshal class to get my information. But I'm not
totally sure how to go about it.
"Mattias Sjögren" wrote:
> >I'm getting a COM Object,
>
[quoted text clipped - 9 lines]
>
> Mattias
Mattias Sj?gren - 29 Mar 2005 11:07 GMT
>That won't necessarily work for me, because I may or may not have com
>wrappers already created for the COM interface.
OK, what do you have? The IID? If so you can probably use
Marshal.Queryinterface().
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.