Registering a COM object in Python
Fernando Gabrieli
fgabrieli at extrabold.com
Thu Oct 30 17:27:59 EST 2003
I need to communicate with Outlook 2000 COM object using win32com in Python.
I registered a new class and called
win32com.server.register.UseCommandLine(OutlookAddin)
using this for OutlookAddin
class OutlookAddin:
_com_interfaces_ = ['_IDTExtensibility2']
_public_methods_ = ['alive']
_reg_clsctx_ = pythoncom.CLSCTX_INPROC_SERVER
_reg_clsid_ = "{16925498-0E7D-4d7f-A26B-825D994FBCBC}"
_reg_progid_ = "Test.OutlookAddin"
Also ive defined OnConnection and other events but they NEVER get called
Somebody knows what is happening ?
Thanks,
Fernando
More information about the Python-list
mailing list