ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved