Hi,
I am using python with a makepy generated wrapper on a COM application. One
of this object's methods has 3 parameters, two of which are optional.
If I call the method with just the non-optional parameter, or all three
parameters, it works. If I call it with the first two parameters, I get the
following error:
(-2147352567, 'Exception occurred.', (0, 'Amphora.Sessio n.1', 'A bad
parameter was passed to the method', None, 0, -1610547133), None)
I have tried calling the method by using the names of the optional
parameters, and I have also tried using pythoncom.Missi ng and
pythoncom.Empty for the non essential parameter. I have also edited the
generated .py file so that it contains the following:
defaultNamedOpt Arg=pythoncom.E mpty
defaultNamedNot OptArg=pythonco m.Empty
defaultUnnamedA rg=pythoncom.Em pty
But this has not made any difference! Any help would be very much
appreciated.
Cheers,
Rane
I am using python with a makepy generated wrapper on a COM application. One
of this object's methods has 3 parameters, two of which are optional.
If I call the method with just the non-optional parameter, or all three
parameters, it works. If I call it with the first two parameters, I get the
following error:
(-2147352567, 'Exception occurred.', (0, 'Amphora.Sessio n.1', 'A bad
parameter was passed to the method', None, 0, -1610547133), None)
I have tried calling the method by using the names of the optional
parameters, and I have also tried using pythoncom.Missi ng and
pythoncom.Empty for the non essential parameter. I have also edited the
generated .py file so that it contains the following:
defaultNamedOpt Arg=pythoncom.E mpty
defaultNamedNot OptArg=pythonco m.Empty
defaultUnnamedA rg=pythoncom.Em pty
But this has not made any difference! Any help would be very much
appreciated.
Cheers,
Rane
Comment