A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2010-March/720287.html below:

How to find an COM object in using of pywin32

How to find an COM object in using of pywin32 How to find an COM object in using of pywin32Alf P. Steinbach alfps at start.no
Tue Mar 2 03:42:46 EST 2010
* Steven Woody:
> Hi,
> 
> I want to interactive with an OLE application with pywin32.  The
> problem is I get totally no idea how to find the object in OLEView and
> how to figure out it's interface.
> 
> With pywin32's example, I even don't understand that in the below statement,
> 
>   win32com.client.Dispatch('Excel.Application')
> 
> that where the name 'Excel.Application' comes from?  In OLEView
> (Microsoft's COM brower), I cannot find this name.

It's a "programmatic identifier" a.k.a. "progid".

It identifies a COM class and it's used as a readable but more 
name-collision-prone alternative to the 128-bit UUID.

You can find the programmatic identifiers in the Windows registry (use e.g. 
regedit); often they're not documented.


Cheers,

- Alf

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4