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
Re: Using ActiveX objects in Win32
by logistix other posts by this author
Jan 25 2003 8:41PM messages near this date
Re: Using ActiveX objects in Win32 | PyGtk and multiple windows
"bap" <trash@[...].com>  wrote in message news:<ttyY9.30486$eM6.43059@[...].net>...
>  Can anyone point me to documentation on how to use ActiveX objects in a
>  Windows environement.
>  I know of the anydll module for dlls -- does this work for ActiveX object?
>  I'm looking for the equivalent of
>  "createobject()" in VB
>  Thanks

ActiveX is a subset of COM, so you can get to it through win32com. 
The closest equivilent to createobject is:

win32com.client.Dispatch(ProgID)

You'll also get a performance boost by running the makepy utility on
frequently used components.  It's on the tools menu in PythonWin.
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
bap
Two Inches
logistix

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