[python-win32] passing 'small' integers as 64 bit integers to COM functions

2009-02-16 Thread Shaer, Neta
Hello, I'm using python 2.5 on windows (32 bit). I'm using some COM object from python. One of the functions in this COM objects expects VARIANT and operate according to the type of this VARIANT. The thing is that it does one thing if the VARIANT type is VT_UI4 (32 bit integer) and a different th

[python-win32] Problem with COM return value in python, but works fine in VB

2009-02-16 Thread David Powell
Hello, I am trying to automate the commercial software "CST Microwave Studio" using win32com, on a 32 bit windows XP machine. The program has a reasonably well documented COM interface, and for example I am able to run the following .vbs script, which shows the expected behaviour of opening a new

Re: [python-win32] Obtaining Outlook item properties from saved email file

2009-02-16 Thread Paul Moore
2009/2/16 Paul Moore : > 2009/2/16 Tim Golden : >> They're structured storage and a bit opaque. In principle >> this (very sketchy and untested) code should get you started: > > Thanks, that's a good start. Actually, your mention of the IStream > interface below reminds me, I'm fairly sure I saw so

Re: [python-win32] Obtaining Outlook item properties from saved email file

2009-02-16 Thread Paul Moore
2009/2/16 Tim Golden : > They're structured storage and a bit opaque. In principle > this (very sketchy and untested) code should get you started: Thanks, that's a good start. Actually, your mention of the IStream interface below reminds me, I'm fairly sure I saw somewhere a mention of a CDO metho

Re: [python-win32] PyWin 32 variable instead of 'Nothing' in VB

2009-02-16 Thread Tim Golden
Payman Rowhani wrote: We have a Visual Basic script that communicates with an application through com. We like to translate it to Python and use win32com.client instead. We have everything working, except for the use of "Nothing" in the VB script for a couple of its function calls. What is the

Re: [python-win32] Obtaining Outlook item properties from saved email file

2009-02-16 Thread Tim Golden
Paul Moore wrote: Sorry, this is only peripherally a Python issue, as the code I'm writing could just as easily be VBScript or any other language... But as I'm writing in Python, and this group is full of helpful and knowledgeable people... :-) I have a folder full of emails saved from Outlook (

[python-win32] Obtaining Outlook item properties from saved email file

2009-02-16 Thread Paul Moore
Sorry, this is only peripherally a Python issue, as the code I'm writing could just as easily be VBScript or any other language... But as I'm writing in Python, and this group is full of helpful and knowledgeable people... :-) I have a folder full of emails saved from Outlook (.msg extension). I w

[python-win32] pywin32 build 213 released

2009-02-16 Thread Mark Hammond
Hi all, I'm extremely happy to announce the release of pywin32 build 213 - the first release of pywin32 with support for Python 3.x. This release has a large number of changes and should, in general, be considered BETA quality - please refer to the release notes below for details. The full chan

[python-win32] Released prototype Excel add-in making it easy to create Python add-ins

2009-02-16 Thread Thomas P. Boesen
Hi, I am thinking about creating an Excel add-in that makes it very easy to create Excel macros / add-ins using Python (IronPython) Any feedback about the idea will be greatly appreciated. I have made a prototype of this add-in available here: http://www.xefion.com/en/discoveryscript.html The

[python-win32] PyWin 32 variable instead of 'Nothing' in VB

2009-02-16 Thread Payman Rowhani
We have a Visual Basic script that communicates with an application through com. We like to translate it to Python and use win32com.client instead. We have everything working, except for the use of "Nothing" in the VB script for a couple of its function calls. What is the replacement of "Nothing