Please Help: COM Events
Mark Hammond
MarkH at ActiveState.com
Tue Feb 13 18:07:29 EST 2001
Ben Shapiro wrote:
> Seems to me that when the event handler is called, the argument passed in
> loses it's type as a JabberMsg and becomes a generic Dispatch object
> so i can't call properties or methods on it.. Is there any way to cast the
> argument back to a JabberMsg object?
You should be able to say:
Msg = win32com.client.Dispatch(Msg)
However, event handlers are supposed to do this for you automatically. Hrm. No time to investigate ATM - I am busy adding support for vtable implemented interfaces to win32com ;-)
Mark.
--
Nominate Your Favorite Programmers
for the Perl and Python Active Awards!
http://www.ActiveState.com/Awards/
More information about the Python-list
mailing list