thomas heller tazezsnctypesorg huayang xia schrieb trying use ctypes call dll functions one functions requires argument struct idispatch pyidispatch object python convert pyidispatch object struct idispatch thanks advance way know retrieve idispatch pointer pyidispatch object print win32comclient import dispatch ie dispatchinternetexplorerapplication print ie windows internet explorer reprie print ie_oleobj_ last number pointer question parse repr pass ctypes function call fun attached script creates comtypes idispatch pointer pyidispatch object thomas shows convert pywin32 pyidispatch object comtypes com pointer win32comclient import dispatch dispatchinternetexplorerapplication x d_oleobj_ print reprx reprx like last number address idispatch pointer addr intreprxsplit121 16 print hexaddr ctypes import comtypesautomation import idispatch _ctypes import copycompointer create null comtypes pointer p pointeridispatch put idispatch pointer comtypes idispatch pointer castbyrefp pointerc_void_p0 addr call addref since comtypes pointer call release goes away paddref print p _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 thu 07 aug 2008 152452 0200 pythonwin32 convert pyidispatch object struct idispatch