A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/300485.html below:

DispatchWithEvents not working for SQLDMO.Backup

DispatchWithEvents not working for SQLDMO.Backup DispatchWithEvents not working for SQLDMO.BackupChandra ctambrin at gmail.com
Wed Sep 28 03:43:23 EDT 2005
Hi,

I tried the following:

>>> from win32com.client import DispatchWithEvents

>>> class BackupEvent:
...     def OnPercentComplete(self, sMessage, nPercent):
...         print sMessage, nPercent

>>> oSqlBackup = DispatchWithEvents('SQLDMO.Backup', BackupEvent)
Traceback (most recent call last):
    raise ValueError, "This COM object does not support events."
ValueError: This COM object does not support events.


SQLDMO.Backup is a COM object with EVENT, why the error "does not
support events"? I tried the demo of DispatchWithEvents using IExplorer
and it's working, so I think the installation is correct. Is there
anyone facing the same problem?

Thanks,
Chandra


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4