Re: [python-win32] Data Type Conversion in Python Win32 COM

2008-02-21 Thread Mark Hammond
Pythoncom does its conversions in oleargs.cpp in the source tree. My guess is that we are hitting a path causing one of the "*_AsLong" or similar functions to fail, returning -1, but we don't check that error condition. However, the best I can tell, the test suite does try and cover these cases (s

Re: [python-win32] error

2008-02-21 Thread Tim Roberts
Sagar Khushalani wrote: > one of the few places that actually has help with that. I tried to > implement it but for some reason it didnt work. I even tried just the > Example #1, and even that didnt work. I have attached the error in the > text file.I know its a long error, but I can't find any

Re: [python-win32] error

2008-02-21 Thread Sagar Khushalani
wow thank you! i know its a stupid mistake but i've been really busy and didnt notice that. solved :D thanks a lot!! Simon Dahlbacka <[EMAIL PROTECTED]> wrote: Let's start with the obvious, you *do* have the MSMQ stuff installed? /Simon 2008/2/21, Sagar Khushalani <[EMAIL PROTECTED]>: that was

[python-win32] Data Type Conversion in Python Win32 COM

2008-02-21 Thread Chen
Hello, I have a question regarding to how Data type is being converted into COM object. For example, there is a function A in one COM object that requires an Unsigned 32 bit Integer as a parameter. How could I pass a Long Integer in python to Function A. I found that if the parameter is smaller

Re: [python-win32] error

2008-02-21 Thread Simon Dahlbacka
Let's start with the obvious, you *do* have the MSMQ stuff installed? /Simon 2008/2/21, Sagar Khushalani <[EMAIL PROTECTED]>: > > that was the error for the example from the website. > here it the error for my program. > > Traceback (most recent call last): > File "C:\Homework\Python\main.py",

Re: [python-win32] error

2008-02-21 Thread Sagar Khushalani
that was the error for the example from the website. here it the error for my program. Traceback (most recent call last): File "C:\Homework\Python\main.py", line 73, in main() File "C:\Homework\Python\main.py", line 68, in main queueinfo = win32com.client.Dispatch("MSMQ.MSMQQueueInfo

Re: [python-win32] Fwd: Using Python and WMI for multiple machines

2008-02-21 Thread Tim Golden
Kevin Horn wrote: > On Feb 20, 2008 3:04 AM, Tim Golden <[EMAIL PROTECTED]> wrote: [... snip Python 2.5+ code example ...] > Note that the above code will only work under Python 2.5, since that's when > the "with" statement was added. > > (Some of us are still stuck in 2.4 land :) ) > > In 2.4 a