win32com: interfaces <coclass_interfaces>

Roger Upole rupole at hotmail.com
Fri Oct 24 23:02:25 EDT 2003


Once you have an instance of HelloWorld, you should be able to do something
like
win32com.client.Dispatch(helloworldinstance,resultCLSID='{clsid of
IHelloWorld}')
             Roger




"Raaijmakers, Vincent (IndSys,GE Interlogix)" <Vincent.Raaijmakers at ge.com>
wrote in message news:mailman.83.1067027194.702.python-list at python.org...
Hopefully a win32com guru can help me here..

if a class, generated by makepy.py has an interface defined by
'coclass_interfaces'
like:

class HelloWorld(DispatchBaseClass):
"""HelloWorld Interface"""
CLSID = IID('{96784DFF-A5F5-4C0F-AF30-28A33153FA92}')
coclass_interfaces = [ IHelloWorld, IFoo ]


how can I get the object IHelloWorld from the baseclass HelloWorld.
Again, I only see the same questions when I try to find the answer to this
question in every newsgroup.
Please, who has the answer for me?

Vincent







More information about the Python-list mailing list