Problem passing COM object
MarkH at ActiveState.com
Thu Dec 28 13:47:21 CET 2000
wmistar at cyclones.com wrote:
> The error comes out as follows:
>>>> dbh = trdb.AutoLogin("", "", "", "", 0, tr)
> Traceback (innermost last):
> File "<interactive input>", line 1, in ?
> File "<COMObject TRDatabase.Database>", line 2, in AutoLogin
> com_error: (-2147352571, 'Type mismatch.', None, 6)
I'm afraid this isn't win32com giving the error, but the object itself.
win32com is passing the COM object, but the COM object itself is
returing a COM error code of DISP_E_TYPEMISMATCH.
> In VB, the same call is sucessfully done by doing this:
> Dim mtr As TRDatabase.Application
> dbh = trdb.AutoLogin("", "", "", "", bForceLogin, mtr)
> Please help,
No idea I'm afraid. The Python COM test suite does similar things...
More information about the Python-list