[python-win32] Calling COM methods that expect arguments by reference

2009-08-10 Thread Aaron Hoover
This question is similar to one posed by Mike Graham in a recent thread, but I thought I'd see if I could rustle up any additional feedback. I'm trying to called a COM automation object using Python. The wrinkle is that the method I need uses arguments by reference to store output from

Re: [python-win32] Calling COM methods that expect arguments by reference

2009-08-10 Thread Greg Antal
Aaron: From the Python definition you show, PythonCOM is going to treat your call-by-reference arguments as output values whether they're supposed to be or not. This is for all the parameters defined with type (16387, 2). When you have parameters identified like that, your Python call has to

Re: [python-win32] Calling COM methods that expect arguments by reference

2009-08-10 Thread Aaron Hoover
Hi Greg, I gave your suggestion a shot, but I get the following perplexing error: TypeError: int() argument must be a string or a number, not 'NoneType' which makes me think it's still somehow expecting to get those values as input even though they're explicitly set to be outputs in the