I have started at a new job and I am trying to get some quick tests for some COM components that are used here.
This morning I installed python 2.4.2 and pywin32-205.
I have used makepy to create the stubs for the type library.
Expand|Select|Wrap|Line Numbers
- >>> import win32com.client
- >>> s = win32com.client.gencache.GetClassForProgID("MXApi.MXSession.600")
- >>> s
- <class win32com.gen_py.6CC98261-E777-11D7-884B-0002A53407AEx0x1x0.MXSessionClass at 0x0107B5A0>
- >>> dir(s)
- ['CLSID', '__doc__', '__getattr__', '__init__', '__module__', '__repr__', '__setattr__', 'coclass_interfaces', 'coclass_sources']
Almost all references I have found use the win32com.client.Dispatch method, but these COM objects don't support the dispatch interface, so no joy there.