I have an Interop class that works properly. However, I don't know wich
COM-object it calls (I'm not the one that created the Interop class).
How can I find out? I've tried to look at the code generated by ildasm.exe
and remotesoft salamander, but I can't find the call to the COM-object. All
I can find is the method signature for the Interop method, wich casts the
string arguments using ([MarshalAs(UnmanagedType.BStr)]
Joakim
> I have an Interop class that works properly. However, I don't know wich
> COM-object it calls (I'm not the one that created the Interop class).
[quoted text clipped - 3 lines]
> I can find is the method signature for the Interop method, wich casts the
> string arguments using ([MarshalAs(UnmanagedType.BStr)]
take a look at which interfaces the interop assembly defines
and dump the GUID-attribute:
Debug.WriteLine(typeof(ISomeInterface).GUID);
or inspect the GUID-property of an object of those interfaces:
Debug.WriteLine(someObject.GetType().GUID);
rob
Joakim Olesen - 28 Jun 2004 09:24 GMT
"
> take a look at which interfaces the interop assembly defines
> and dump the GUID-attribute:
>
> Debug.WriteLine(typeof(ISomeInterface).GUID);
"
Doesn't that only return the GUID of the interop class? Or does it actually
return the GUID of the COM class? If so, how do I find out the file name
(dll-file) that this COM class is located in?
Joakim
> > I have an Interop class that works properly. However, I don't know wich
> > COM-object it calls (I'm not the one that created the Interop class).
[quoted text clipped - 14 lines]
>
> rob
Robert Jordan - 03 Jul 2004 11:19 GMT
> "
>
[quoted text clipped - 8 lines]
> return the GUID of the COM class? If so, how do I find out the file name
> (dll-file) that this COM class is located in?
No, it's the "real" COM GUID. The DLL you look up from
the registry. The path is HKEY_CLASSES_ROOT\CLSID\.