win32com: interfaces <coclass_interfaces>

Raaijmakers, Vincent (IndSys, Raaijmakers, Vincent (IndSys,
Mon Oct 27 09:33:24 EST 2003


That was it!!
Thanks you so much.

Vincent

-----Original Message-----
From: Roger Upole [mailto:rupole at hotmail.com]
Sent: Friday, October 24, 2003 11:02 PM
To: python-list at python.org
Subject: Re: win32com: interfaces <coclass_interfaces>


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



-- 
http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list