[FRPythoneers] makepy.py in ActiveState

Erick Bodine erick at allocity.com
Thu Oct 31 08:28:11 MST 2002


Does anyone have any experience using makepy.py in ActiveState to
generate COM objects on Windows??  Specifically CDO, CDOEXM??  I was
able to generate the modules but I am at a loss as to how get an object.

If I open up the generated module I can see various classes, but get
'Invalid class string' errors when I try to use them...I have tried
various combinations of class string w/ little success...Any ideas??

My code:
from win32com.client import Dispatch
cdo = Dispatch("CDOEXM.IExchangeServer")

com_error: (-2147221005, 'Invalid class string', None, None)

Generated module:
# Created by makepy.py version 0.4.0
# By python version 2.2.1 (#34, Apr 15 2002, 09:51:39) [MSC 32 bit
# From type library 'CDOEXM.DLL'
# On Thu Oct 31 07:08:06 2002
"""Microsoft CDO for Exchange Management Library"""
makepy_version = '0.4.0'
python_version = 0x20201f0

import win32com.client.CLSIDToClass, pythoncom
CLSID = pythoncom.MakeIID('{25150F00-5734-11D2-A593-00C04F990D8A}')
class IExchangeServer(DispatchBaseClass):
	"""IExchangeServer Interface"""



More information about the FRPythoneers mailing list