Re: [python-win32] Problem passing array by reference

2014-07-18 Thread Marco Nawijn
Dear all, Sorry for the noise on the list. Epic fail of my freshly configured mail client. Marco On Fri, Jul 18, 2014 at 7:28 PM, Marco Nawijn wrote: > On Fri, 18 Jul 2014 09:26:34 -0700 > Tim Roberts wrote: > > > Marco Nawijn wrote: > > > An update on where I am at

Re: [python-win32] Problem passing array by reference

2014-07-18 Thread Marco Nawijn
On Fri, 18 Jul 2014 09:26:34 -0700 Tim Roberts wrote: > Marco Nawijn wrote: > > An update on where I am at the moment. I managed to find the > > library that holds the definition for the GetComponents call. When > > I run makepy on this library I get: > >

Re: [python-win32] Problem passing array by reference

2014-07-18 Thread Marco Nawijn
d code, because it does not allow me to use early binding. If I use late binding, the calls I am interested (Get/Set Components) do not work. What might be an option is to figure out the proper definition of VARIANT that gets accepted by the GetComponents call. So after a long post I come to the

Re: [python-win32] Problem passing array by reference

2014-07-17 Thread Marco Nawijn
Hi Tim, Ok. I will give it a try and report back. I did a quick search and found the TLB files. Never worked with them though, but I will take a look. Marco On Thu, Jul 17, 2014 at 10:22 PM, Tim Roberts wrote: > Marco Nawijn wrote: > > Ok. Another clue (slightly blushing that I didn

Re: [python-win32] Problem passing array by reference

2014-07-17 Thread Marco Nawijn
get back an exact copy of what I put in. Regarding the workaround, can I mix comtypes and win32com? So, can I only (try) to use comtypes to let this call succeed? All other calls I have tried work flawlessly with win32com. Thanks for the effort! Much appreciated. On Thu, Jul 17, 2014 at 9:26

Re: [python-win32] Problem passing array by reference

2014-07-17 Thread Marco Nawijn
14 at 7:36 PM, Tim Roberts wrote: > Marco Nawijn wrote: > > > > I am facing a problem passing an array by reference. It is exactly the > > same problem as described in this thread: > > > > https://mail.python.org/pipermail/python-win32/2002-November/000562.html &g

[python-win32] Problem passing array by reference

2014-07-17 Thread Marco Nawijn
Dear All, I am facing a problem passing an array by reference. It is exactly the same problem as described in this thread: https://mail.python.org/pipermail/python-win32/2002-November/000562.html In short, I have a valid reference to a Position object. This object has two methods, GetComponents

[python-win32] Problem with Dispatch in normal Python shell

2011-12-16 Thread Marco Nawijn
Dear All, I hope someone can assist me with a dispatch problem that I am facing. Let me briefly explain my case. I am implementing a monitoring and reporting application for one of our manufacturing machines. I use the COM interface provided by the PLC manufacturer (Siemens). Since it is a long ru

[python-win32] Problem connecting to OPC server through COM interface

2011-11-16 Thread Marco Nawijn
Dear All, I am running into a strange problem (for me). I use the openopc (www.openopc.org) python package to connect to a OPC server through COM. I have the following code: import openopc opc = openopc.client('OPC.Automation.1') If I run this code from within PythonWin, it succeeds. However, wh