How do I access COM object's nondefault interface?
by Josef Sachs other posts by this author
Aug 15 2002 9:05PM messages near this date
Re: 20 Stages of Perl to Python Conversion
|
Re: How do I access COM object's nondefault interface?
Can anyone tell me how to access a COM object's nondefault interface?
I saw the postings from mhurwitch@[...].com and
Toby Dickenson <htrd90@[...].org> on the subject in 1999,
and I tried the methodology suggested (below) but it just
crashes pythonwin.
I'd greatly appreciate any assistance.
By the way, is there a better place to ask Python-win32 questions?
I have hardly received any responses to my recent postings.
def qi(object,iid):
# Query for given iid, but use the IDispatch wrapper. The given iid
# must correspond to a dual interface or dispinterface
dispatch=object._oleobj_.QueryInterface(iid,pythoncom.IID_IDispatch)
# Create the best dispatch object we can, using makepy version if possible
return win32com.client.Dispatch(dispatch,resultCLSID=iid)
--
http://mail.python.org/mailman/listinfo/python-list
Thread:
Josef Sachs
Carl Waldbieser
Josef Sachs
Carl Waldbieser
Markus Willi
Josef Sachs
|