Thomas Heller schrieb: > I do not remember exactly how I managed to remove the contents attribute from > POINTER(ISomeInterface), or how I prevented indexing. It makes no sense to > dereference a COM pointer, the only interesting things that you can do with > a COM pointer is to call methods on it.
Well, now I know again. The ctypes baseclass of POINTER(ISomeInterface) is c_void_p; c_void_p does not support indexing nor has a .contents attribute so there was nothing to disable or to remove. The only public attribute of c_void_p instances is a .value attribute; for COM interface pointer classes this is redefined to return 'self'. -- Thomas ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users