Re: [python-win32] Python, COM, VARIANT, VT_BYREF, Joy!

2010-05-24 Thread Mark Hammond
On 22/05/2010 12:15 AM, George Doster wrote: Hello All, I'm trying to write a Python program that uses a provided ActiveX component. I have verified the component works ok with Visual Basic. I have used makepy to build the import module for my ActiveX component. I can successfully load the

Re: [python-win32] does pipes.quote() work properly on Windows?

2010-05-24 Thread Tim Roberts
Bill Janssen wrote: I'm actually not passing file names. I'm passing argument strings, which may contain spaces, quotes, and other things. For instance, myprogram --title=That's the game! says Mike Hammer Brotsky --file=... myprogram is a Python program, and expects to get the whole

Re: [python-win32] Python, COM, VARIANT, VT_BYREF, Joy!

2010-05-24 Thread Vernon Cole
If I Recall Correctly, the ActiveXCtrl class in wxPython does not use the pywin32 tools, but a different package. That, along with no plans to migrate to Python 3, is why my own work is migrating away from wxPython. Too bad, too. I rather liked wxPython. -- Vernon Cole On Mon, May 24, 2010 at

Re: [python-win32] does pipes.quote() work properly on Windows?

2010-05-24 Thread Bill Janssen
Tim Roberts t...@probo.com wrote: Bill Janssen wrote: I'm actually not passing file names. I'm passing argument strings, which may contain spaces, quotes, and other things. For instance, myprogram --title=That's the game! says Mike Hammer Brotsky --file=... myprogram is a

Re: [python-win32] Python service hangs in Dispatch when frozen with py2exe

2010-05-24 Thread Don Dwiggins
OK, I have more information that may help. Looking into the code invoked by IA.clsAuthorizeBatch(), I've found that the hangup occurs in the call to pythoncom.new in CoClassBaseClass in win32com\client\__init__.py. Interestingly, if I run the code in the main Twisted thread, it executes

Re: [python-win32] Python, COM, VARIANT, VT_BYREF, Joy!

2010-05-24 Thread George Doster
On Mon, May 24, 2010 at 8:25 AM, Mark Hammond skippy.hamm...@gmail.comwrote: On 22/05/2010 12:15 AM, George Doster wrote: Hello All, I'm trying to write a Python program that uses a provided ActiveX component. I have verified the component works ok with Visual Basic. I have used makepy to

Re: [python-win32] Python service hangs in Dispatch when frozen with py2exe

2010-05-24 Thread Mark Hammond
It might be worth making a call to pythoncom.CoInitializeEx(pythoncom.COINIT_MULTITHREADED) in the thread which is doing this work. I *suspect* the problem will be related to when the import of pythoncom happens in the 2 environments - when it is first imported, it will call CoInitialize for