Paul, I haven't seen a response since you've posted your message. When you get back an IDispatch pointer from calling a COM method on another object, you have to Dispatch that object. So for example if the IDispatch pointer is stored in a variable called newObj, then you'd want to do "win32com.client.Dispatch(newObj)" before you can start calling methods on newObj.
I hope this helps. -- Chris Ingram, Synchrologic, Inc. -----Original Message----- From: Paul Casteels [mailto:Paul.Casteels@;ua.ac.be] Sent: Tuesday, November 05, 2002 2:52 AM To: [EMAIL PROTECTED] Subject: win32com Dispatch When I use win32com.client.Dispatch I get a CDispatch object with an oleobj inside and I have direct access to all methods/attributes. How can I obtain the same result when I get the IDispatch pointer from an external application (as an argument from another COM method). The type of this pointer is PyIDispatch but I am unable to invoke any methods on it. -- Paul Casteels [EMAIL PROTECTED] Tel: +32.3.8202455 Fax: +32.3.8202470 University of Antwerp Dpt.Physics Universiteitsplein 1 B-2610 Wilrijk Belgium _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython