Using ActiveX objects in Win32

logistix logistix at zworg.com
Sat Jan 25 15:41:08 EST 2003


"bap" <trash at terastat.com> wrote in message news:<ttyY9.30486$eM6.43059 at rwcrnsc51.ops.asp.att.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.




More information about the Python-list mailing list