NIcola Montecchiari wrote:
>
> I am trying to create a call back for som events generated by a COM
> server that I connect.
> Looking at some posts apparently related to the same topic, I wrote
> this sample code to test:
>
> import win32com.client as com
> from win32com.client import gencache
> ...
> mod = gencache.EnsureModule('{B4955EC7-F7F2-11D2-AA9C-444553540000}',
> 0, 1, 0)
> ob = mod.Application()
> objCybio = com.DispatchWithEvents(ob, Eventi)
>
> When I run this code, it starts the connection, but soon after it is
> stopped with the following error:

Do you get the same result if you replace those three lines with this?

    objCybio = win32con.client.DispatchWithEvents("Maxim.Application",
Eventi)

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to