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?

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to