Hi, I'm trying to use an Automation interface from Python, but I'm stuck with the following error calling a method: The IDL for the method is: HRESULT QueryAvailableProperties( [in, string] BSTR ItemID, [out] LONG *Count, [out] SAFEARRAY(LONG) *PropertyIDs, [out] SAFEARRAY(BSTR) *Descriptions, [out] SAFEARRAY(SHORT) *DataTypes ); The MakePy version is: def QueryAvailableProperties(self, ItemID=defaultNamedNotOptArg, Count=defaultNamedNotOptArg, PropertyIDs=defaultNamedNotOptArg, Descriptions=defaultNamedNotOptArg, DataTypes=defaultNamedNotOptArg): return self._ApplyTypes_(0x60020017, 1, (24, 0), ((8, 1), (16387, 2), (24579, 2), (24584, 2), (24578, 2)), 'QueryAvailableProperties', None,ItemID, Count, PropertyIDs, Descriptions, DataTypes) and the code I'm using to call it is: >>> a = None >>> b = None >>> c = None >>> d = None >>> print x.QueryAvailableProperties("Test.Item1", a, b, c, d) Traceback (innermost last): File "<interactive input>", line 1, in ? File "win32com\gen_py\F8582D24-88FB-11D0-B850-00C0F0104305x0x1x0.py", line 226, in QueryAvailableProperties return self._ApplyTypes_(0x60020017, 1, (24, 0), ((8, 1), (16387, 2), (24579, 2), (24584, 2), (24578, 2)), 'QueryAvailableProperties', None,ItemID, Count, PropertyIDs, Descriptions, DataTypes) File "C:\Python20\win32com\client\__init__.py", line 334, in _ApplyTypes_ return self._get_good_object_(apply(self._oleobj_.InvokeTypes, (dispid, 0, wFlags, retType, argTypes) + args), user, resultCLSID) com_error: (-2147352571, 'Type mismatch.', None, 3) Any ideas ? Regards, Graham Bloice Software Developer Trihedral UK Limited Tel: +44 (0)7002 874433 Fax: +44 (0)7002 228880 Email: mailto:[EMAIL PROTECTED] Web: http://www.trihedral.com _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython