Where do I find the dispatch name?
James Carroll
mrmaple at gmail.com
Wed May 25 15:17:13 EDT 2005
<Answering self>
I looked through all the IIDs in: PythonWin, Tools, COM Object
Browser, RegisteredCategories, Automation Objects.
After looking through all the IIDs I saw one that looked like it might
work... and it did.
-Jim
On 5/25/05, James Carroll <mrmaple at gmail.com> wrote:
> I just ran makepy to create a wrapper for my com object, and it
> generated the wrapper with the CLSID.py under
> site-packages/win32com/gen_py/
>
> Now, I'm trying to figure out how to invoke it. How do I figure out
> what string to give Dispatch?
>
> For instance:
> xl = win32com.client.Dispatch("Excel.Application")
>
> If I understand right would give me an instance of the wrapper....
> Do I give it the entire classID?
>
> -Jim
>
More information about the Python-list
mailing list