Re: [python-win32] passing array by reference (3)

2017-02-20 Thread Tim Roberts
Peter Enenkel wrote: > > I'm trying to read some data from CATIA v5 (which is an older CAD > application) via its COM server. Overall it works rather well, even if > I'm fairly new to COM communication. > > Nevertheless I have run into a problem: One specific function > *GetComponents * is supposed

Re: [python-win32] passing array by reference (3)

2017-02-20 Thread Peter Enenkel
Hello Andreas, I have managed to cobble together a solution following your initial suggestion. Not really elegant, but it works quite well. Many thanks. best regards Peter 2017-02-19 20:57 GMT+01:00 Andreas Holtz : > I missed your second questions: > I have no experience with this. But it looks

Re: [python-win32] passing array by reference (3)

2017-02-20 Thread Peter Enenkel
Hello Tim, I concur that the array SHOULD be a return value (at the very least in Python). Unfortunately it isn't. Definitely not with late binding and I think not with early binding. The function does expect a parameter of the described type and does not return anything. In my opinion it would t

Re: [python-win32] passing array by reference (3) [SEC=UNCLASSIFIED]

2017-02-20 Thread Andrew MacIntyre
If you’re prepared to consider another approach, comtypes (https://pypi.python.org/pypi/comtypes) can generate module definitions from TLB files. Comtypes supports passing by reference via the underlying ctypes FFI. Andrew. -> "These thoughts are mine alone!" <