[python-win32] ProgID/class string for MS TTS Engine not working

2011-05-26 Thread Jacob Kruger
The full class name for a standard TTS synth, when accessing it via .Net comes out as: System.Speech.Synthesis.SpeechSynthesizer And, that is referring to a file called System.Speech.dll, and there are unfortunately also different versions for the varying .net frameworks, but none of the 3 I fo

[python-win32] win32event.WaitForMultipleObjects and sockets

2011-05-26 Thread David Markey
Hi All, Sorry for the n00b question... With win32event.WaitForMultipleObjects, I dont seem to be able to give it a plain socket object. How can I create a PyHANDLE from a socket? In [26]: int = WaitForMultipleObjects([so],False,1) ---

Re: [python-win32] win32event.WaitForMultipleObjects and sockets

2011-05-26 Thread Amaury Forgeot d'Arc
2011/5/26 David Markey : > Hi All, > Sorry for the n00b question... > With win32event.WaitForMultipleObjects, I dont seem to be able to give it a > plain socket object. How can I create a PyHANDLE from a socket? It won't work like this, because a socket has several things you can wait for (availab

Re: [python-win32] win32event.WaitForMultipleObjects and sockets

2011-05-26 Thread David Markey
I cant seem to find WSACreateEvent anywhere, is it exposed? There is win32event.CreateEvent but it takes 4 arguments. I can find win32file.WSAEventSelect alright. On 26 May 2011 10:05, Amaury Forgeot d'Arc wrote: > 2011/5/26 David Markey : > > Hi All, > > Sorry for the n00b question... > > Wi

Re: [python-win32] win32event.WaitForMultipleObjects and sockets

2011-05-26 Thread Amaury Forgeot d'Arc
2011/5/26 David Markey : > I cant seem to find WSACreateEvent anywhere, is it exposed? > There is win32event.CreateEvent but it takes 4 arguments. > > I can find win32file.WSAEventSelect alright. According to msdn: """The WSACreateEvent function creates a manual-reset event object with an initial

Re: [python-win32] RTD Server problem with Excel 2007 / How to do vtable-call, without IDispatch?

2011-05-26 Thread Tobias Oberstein
> Von: Mark Hammond [mailto:[email protected]] > Gesendet: Donnerstag, 26. Mai 2011 00:50 > An: Tobias Oberstein > Cc: [email protected] > Betreff: Re: [python-win32] RTD Server problem with Excel 2007 / How to do > vtable-call, without IDispatch? > > I'm afraid I can't really help, b

[python-win32] Threads, COM, gc

2011-05-26 Thread Thomas Heller
I have to fix a tricky problem that we recently discovered in our software. We have a multithreading Python program that uses a lot of COM objects. COM objects have the requirement that they must only be used in the COM apartment where they have been created. Different threads often or even most

Re: [python-win32] win32event.WaitForMultipleObjects and sockets

2011-05-26 Thread Tim Roberts
David Markey wrote: > Hi All, > > Sorry for the n00b question... > > With win32event.WaitForMultipleObjects, I dont seem to be able to give > it a plain socket object. How can I create a PyHANDLE from a socket? Sockets and file handles are not among the list of objects that WaitForMultipleObjects