[python-win32] Follow-up question
Brad Johnson
Brad.Johnson at ballardtech.com
Mon Aug 27 22:07:03 CEST 2007
Brad Johnson <Brad.Johnson <at> ballardtech.com> writes:
I have successfully used the PyCom_PyObjectFromIUnknown function to get a
PyIDispatch object from a raw IDispatch pointer.
My next goal is to get an early bound class instance from that pointer (using a
class generated from makepy).
I can take the PyIDispatch object and call win32com.client.Dispatch using it as
the argument. However, this will only return a late-bound CDispatch of the
object, with no built methods or properties.
This makes sense why this happens (why would the PyIDispatch object know
anything about it's underlying class?) Is there a better way for me to go about
doing this?
More information about the python-win32
mailing list