Re: [python-win32] Dict, List and Com Object...oh my!

2009-07-30 Thread Waldemar Osuch
On Thu, Jul 30, 2009 at 11:20 AM, Person, Roderick wrote: > I'm connecting to a MS SQL 2005 database using ADO com objects and getting a > dataset from a stored procedure -- Works great. > > I'm placing that dataset into a dictionary -- works. > I'm placing that dictionary into a list -- problem!!

Re: [python-win32] Dict, List and Com Object...oh my! [SEC=PERSONAL]

2009-07-30 Thread Andrew MacIntyre
> Does anyone have an idea why? I been trying to figure this out for > 3 hours now. You appear to be re-using the same dictionary for each record; allocate a new one for each record before starting to populate it. -> "These thoughts are mine alone!" <- Andrew Mac

[python-win32] Dict, List and Com Object...oh my!

2009-07-30 Thread Person, Roderick
I'm connecting to a MS SQL 2005 database using ADO com objects and getting a dataset from a stored procedure -- Works great. I'm placing that dataset into a dictionary -- works. I'm placing that dictionary into a list -- problem!! When I move to the next record in the dataset and place the dicti

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'm afraid about my last idea is to pass pythoncom.A

Re: [python-win32] COM array problem

2009-07-30 Thread Reinier Heeres
Hi Mark, Thanks for your quick reply. On Wed, Jul 29, 2009 at 6:49 AM, Mark Hammond wrote: > On 29/07/2009 4:29 AM, Reinier Heeres wrote: >> >> Hi everybody, >> >> I have a problem with a function of a COM object that is supposed to >> return an array of data. The function prototype generated by

Re: [python-win32] calling python as process from vb.net

2009-07-30 Thread niki
Pam Westphal wrote: starting the process *** dim p as new process p.StartInfo.FileName = "pythonw.exe" p.StartInfo.WorkingDirectory = "C:\Python25\work\" p.StartInfo.Arguments = "smooth_data_kiosk2.py " & datafields.Trim p.StartInfo.RedirectStandardOutput = True p.StartInfo.UseShellE

Re: [python-win32] ImportError: No module named win32file

2009-07-30 Thread Iman Darabi
thanks elias . my problem solved . i installed pywin32 again but this time got the exact version for python2.6 ( pywin32-214.win32-py2.6.exe) now every thing is ok . On Wed, Jul 29, 2009 at 3:

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

2009-07-30 Thread Mark Hammond
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'm afraid about my last idea is to pass pythoncom.ArgNotFound (as mentioned at the top of the generated files) f