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't notice

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

2014-07-17 Thread Tim Roberts
Marco Nawijn wrote: > Ok. Another clue (slightly blushing that I didn't notice this before..). > I focus on the Position.GetComponents(...) for the moment. > Recall that this should set the orientation (9 values) and the > position (3 values) by means of an array passed in by reference. > > To my

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

2014-07-17 Thread Marco Nawijn
Ok. Another clue (slightly blushing that I didn't notice this before..). I focus on the Position.GetComponents(...) for the moment. Recall that this should set the orientation (9 values) and the position (3 values) by means of an array passed in by reference. To my surprise, it returns the same nu

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

2014-07-17 Thread Tim Roberts
Marco Nawijn wrote: > > Your answer implies that they are not declared correctly, because the > parameter is really required. It throws an exception with "invalid > number of parameters" if you leave it out. Many people write their COM objects so that they work from C++ without giving a rip about

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

2014-07-17 Thread Marco Nawijn
Hi Tim, Your answer implies that they are not declared correctly, because the parameter is really required. It throws an exception with "invalid number of parameters" if you leave it out. If the type is somehow not declared correctly, is there a workaround? Marco On Thu, Jul 17, 2014 at 7:36

Re: [python-win32] Python scripting with Active Directory

2014-07-17 Thread Tim Roberts
Anis Liyana wrote: > Hello, > Would appreciate any help regarding my problem. > > Problem: > I am currently on a project for back up server with python script. > The project is actually arise from problem whereby when I need to back > up my server (Windows Server 2003), I usually use Robocopy but

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

2014-07-17 Thread Tim Roberts
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 > > In short, I have a valid reference to a Position object. This object > has two

[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

Re: [python-win32] Python scripting with Active Directory

2014-07-17 Thread Tim Golden
On 17/07/2014 09:19, Anis Liyana wrote: > I am currently on a project for back up server with python script. > The project is actually arise from problem whereby when I need to back > up my server (Windows Server 2003), I usually use Robocopy but, when I > copy the folders from server 1 to server 2

[python-win32] Python scripting with Active Directory

2014-07-17 Thread Anis Liyana
Hello, Would appreciate any help regarding my problem. Problem: I am currently on a project for back up server with python script. The project is actually arise from problem whereby when I need to back up my server (Windows Server 2003), I usually use Robocopy but, when I copy the folders from ser