Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-30 Thread Mike Graham
On Thu, Jul 30, 2009 at 1:53 AM, Mark Hammond wrote: > On 29/07/2009 11:51 PM, Mike Graham wrote: > >> If I omit the parameters that don't mean anything to me on input, I >> get com_error: (-2147352561, 'Parameter not optional.', None, None). > > I

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-29 Thread Mike Graham
On Wed, Jul 29, 2009 at 12:30 AM, Mark Hammond wrote: > On 29/07/2009 7:30 AM, Mike Graham wrote: >> >> Upon some further investigation, I have come to understand the method >> a bit better >> >> def PickObject(self, >>obj=defaultNamedNotOp

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
ollow. I am really hoping to get this working. Thanks, Mike On Tue, Jul 28, 2009 at 9:00 AM, Mike Graham wrote: > Hi Greg, > > Thanks for your reply. I went back through the mailing list archives > to try to find someone else who had the same problem I did and found > your posts, bu

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
1AC1A8}'), _IDualModelItem has the coclass_clsid {976FAFC9-96FD-11D4-A09D-0050DA1AC1A8}, which is the CLSID of the class "Model". I believe this means I'm not suffering from the same issue Greg was, but I am not sure, in large part because it is difficult to navigate the way

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
eobj_.InvokeTypes or wherever. Mike On Tue, Jul 28, 2009 at 9:00 AM, Mike Graham wrote: > Hi Greg, > > Thanks for your reply. I went back through the mailing list archives > to try to find someone else who had the same problem I did and found > your posts, but I couldn't

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
Hi Greg, Thanks for your reply. I went back through the mailing list archives to try to find someone else who had the same problem I did and found your posts, but I couldn't quite understand your and Hammond's solutions well enough to apply it. Perhaps you or someone else can help me understand wh

[python-win32] By-reference COM method arguments not being treated as outputs

2009-07-27 Thread Mike Graham
I used MakePy on a COM library with some success, but it does not seem to work with methods with passed-by-reference arguments. The documentation, as I understand it, says that the c_fun(in1, in2, *out1, *out2) should transform into (out1, out2) = py_fun(in1, in2). For example, MakePy makes me the