Using .NET COM-objects and "GetType"

svwi at svwi at
Mon Mar 12 10:53:39 CET 2007


I need to dynamically retreive the type name of a COM-object exposed
by a C# COM server.

This was previously successfully done in .NET framwork 1.X with the
method "GetType()", inherited by all classes from System.Object.

Moving to .NET framework 2.0, it stopped working. All I get from
"GetType()" is a PyIUnknown that has no IDispatch interface.

Cannot understand how to get it working.

Appreciate any help.



More information about the Python-list mailing list