Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Utilizing a raw IDispatch Pointer from Python


  • From: software at ginstrom.com (Ryan Ginstrom)
  • Subject: Utilizing a raw IDispatch Pointer from Python
  • Date: Wed, 1 Aug 2007 09:43:05 +0900

> On Behalf Of Brad Johnson
> I would like to give the Python interpreter access to these 
> interfaces that were created in C++ land.
> 
> Stated another way, how can I have Python consume a IDispatch 
> pointer from C++ and wrap it with one of those nice Python 
> classes automatically?

If I understand you correctly, you can use client.Dispatch

from win32com import client
com_object = client.Dispatch(idispatch_pointer_from_cpp)

Regards,
Ryan Ginstrom