win32com: interfaces <coclass_interfaces>

Raaijmakers, Vincent (IndSys, Raaijmakers, Vincent (IndSys,
Mon Oct 27 10:43:37 EST 2003


win32 guru's,

Sorry to ask again a new question..I'm struggling....

Now I have the instance of that interface object but when using the methods of that object I get a com_error message.
What are the possible reasons for failure if this error message is shown when calling the Get method in that class micro?

micro = microManager.Get(None, 3)
File "C:\Python23\lib\site-packages\win32com\gen_py\826C9911-0C4C-11D3-99CF-00104B2A988Ax0x1x0.py", line 345, in
Get
    ret = self._oleobj_.InvokeTypes(1, LCID, 1, (13, 0), ((9, 1), (3, 1)),pFacility, lID)
com_error: (-2147352573, 'Member not found.', None, None)

'Member not found.' .. what does he mean by that?

Vincent

-----Original Message-----
From: Raaijmakers, Vincent (IndSys, GE Interlogix) 
Sent: Monday, October 27, 2003 9:33 AM
To: Roger Upole; python-list at python.org
Subject: RE: win32com: interfaces <coclass_interfaces>


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

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





More information about the Python-list mailing list