Re: [python-win32] Calling a method with SAFEARRAY parameter

2024-10-02 Thread Alessandro Fiorino
It worked it was easier than expected! Il gio 26 set 2024, 07:11 Thomas Geppert ha scritto: > You can simply pass a string and two empty lists like: > > titles, positions = GetTableInfo("TABLENAME", [], []) > > > Am 25.09.2024 um 13:41 schrieb Alessandro Fiorino: > > I have to call a method of a

Re: [python-win32] Calling a method with SAFEARRAY parameter

2024-10-01 Thread Thomas Geppert
You can simply pass a string and two empty lists like: titles, positions = GetTableInfo("TABLENAME", [], []) Am 25.09.2024 um 13:41 schrieb Alessandro Fiorino: I have to call a method of a COM Object which is defined as GetTableInfo ([in] BSTR bstrTableName,[in, out] SAFEARRAY(BSTR)*bstrColu

Re: [python-win32] Calling a method with SAFEARRAY parameter

2024-09-26 Thread Steven Manross
I’m not sure about the context on this one, but shouldn’t you be calling the COM object with data like: columnTitles = VARIANT(pythoncom.VT_ARRAY | pythoncom.VT_BSTR, [“something”]) Versus: columnTitles = VARIANT(pythoncom.VT_ARRAY | pythoncom.VT_BSTR, [None]) Without