[python-win32] Input-only vs. In/Out Function Parameters
Mark Hammond
mhammond at skippinet.com.au
Thu Oct 5 01:24:53 CEST 2006
> 2) VBA was giving me an error like "Expecting 3 return values, got: 2"
> whenever a function contained an [in, out] parameter. It looks like the
> extra parameter it is looking for is the HRESULT signifying the success of
There should be no need to return a HRESULT - but note that the nominated
return value must be the *first* value returned, with [out] params following
in the order they were declared.
As a result, method4 really should only need 2 return values - I'm not sure
why it seems to want more. If you can provide a patch to the pippo sample
that demonstrates your problem I can dig deeper.
Mark
More information about the Python-win32
mailing list