[python-win32] win32com.Dispatch() vs
win32com.client.gencache.EnsureDispatch() vs
win32com.client.DispatchWithEvents()
Tony C
cappy2112 at gmail.com
Tue Mar 22 02:48:06 CET 2005
When I tried accessing a COM server using win32com.Dispatch() , only
the first command sent to the COM server would work after dispatching
it, then all susequent calles to the Execute() method would cause an
excetpion.
Then I read something about EnsureDispatch(), which seems to work 100%
better. It always works for me.
Now I want to try to setup a callback in my code, so I want to try
win32com.client.DispatchWithEvents()
What I would like to know is- is DispatchWithEvents() like the
unreliable Dispatch(), or is it more like using EnsureDispatch() +
event handling ?
Does anyone have some example sof using win32com.client.DispatchWithEvents() ?
thanks
More information about the Python-win32
mailing list