[python-win32] Desire information about Invoke and
InvokeTypes
Bob Gailer
bgailer at alum.rpi.edu
Mon Apr 19 14:14:55 EDT 2004
>At 10:21 AM 4/19/2004, Bob Gailer wrote:
>>I am debugging the com interface to Excel.
[snip]
Look at the InvokeTypes syntax (from the ActiveState link):
object = InvokeTypes(dispid, lcid , wFlags , typeDesc , resultTypeDesc , args )
Invokes a DISPID, using the passed arguments and type descriptions.
Parameters
dispid : int - The dispid to use. Please see PyIDispatch::Invoke.
lcid : int - The locale ID. Please see PyIDispatch::Invoke.
wFlags : int - Flags for the call. Please see PyIDispatch::Invoke.
typeDesc : (tuple, ...) - A sequence of tuples describing the types of
the parameters for the function.
resultTypeDesc : tuple - A tuple describing the type of the result.
args : object, ... - The args to the function.
Compare to the generated call:
ret = self._oleobj_.InvokeTypes(181, LCID, 1, (9, 0), ((12, 1), (3, 49),
(12, 17), (12, 17), (12, 17)),Source, Rowcol, SeriesLabels, CategoryLabels,
Replace)
Notice that typeDesc is a tuple, and resultTypeDesc is a sequence of
tuples. This seems backwards! Could that be the problem? However the method
code for SeriesCollection has a similar parameter structure and it succeeds:
ret = self._oleobj_.InvokeTypes(68, LCID, 1, (9, 0), ((12, 17),),Index)
Could the ActiveState description be wrong?
Bob Gailer
bgailer at alum.rpi.edu
303 442 2625 home
720 938 2625 cell
More information about the Python-win32
mailing list