alex denham p2jjphotmailcom problems thanks help far code lack drag drop isnt stopping program working feature would really like implement ill wait help meantime learn win32 modules windows programming general thanks tim everyone else mailing list alex date thu 24 apr 2008 202842 0100 cggctimgoldenmeuk cc kpitckaew45pythonorg subject pythonwin32 creating python com objects alex denham wrote thanks tim program actually reacts something dragged much better however im receiving error everytime pythoncom error unexpected exception gateway method dragenter dragenter pythoncom error unexpected gateway error ive finally got round producing test harness recreate situation ive never actually used functionality im afraid get error ive looked source code pyidroptargetcpp im afraid havent energy plough gateway code moment trying find whats calling calling one thing correct earlier code wrapobject function specify iid_idroptarget interface twice otherwise end idispatch thats real problem unexpected exception seems mean somethings happened internally gateway logic caused attributeerror suggests failing find dragenter method cant see whether thats flaw technique building com object flaw gateway code discerning attributes also documentation says droppdataobj pt dweffect parameters pdataobj pyidataobject link idataobject idragtarget dont know youre asking find coming think dragdrop technique endpointagnostic highsounding phrase ive invented get hold data think im depth im hoping roger mark knowledgeable people chip point help purposes discussion attach test harness code creates simple window registers simple idroptarget object sorry help tjg import os sys import win32gui import win32con import pythoncom clsid 89dd545a2c834103afe36ceb7ff5eca4 progid timdroptarget desc drop target handler tims app class droptarget _reg_clsid_ clsid _reg_progid_ progid _reg_desc_ desc _public_methods_ dragenter dragover dragleave drop _com_interfaces_ pythoncomiid_idroptarget def dragenter self data_object key_state point effect pass def dragover self key_state point effect pass def dragleave self pass def drop self data_object key_state point effect pass def create_window def ondestroy hwnd msg wparam lparam win32guipostquitmessage 0 wc win32guiwndclass hinst win32guigetmodulehandlenone wclpszclassname dragdrop wcstyle win32concs_vredraw win32concs_hredraw wchcursor win32guiloadcursor 0 win32conidc_arrow wchbrbackground win32concolor_window wclpfnwndproc win32conwm_destroy ondestroy classatom win32guiregisterclass wc style win32conws_visible win32conws_overlapped win32conws_sysmenu return win32guicreatewindow classatom drag drop demo style 0 0 100 100 0 0 hinst none __name__ __main__ pythoncomoleinitialize drop_target pythoncomwrapobject droptarget pythoncomiid_idroptarget pythoncomiid_idroptarget pythoncomregisterdragdrop create_window drop_target win32guipumpmessages _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 _________________________________________________________________ superhero win play iron man mashup game httpwwwironmanmashupcouk fri 08 aug 2008 013734 0100 pythonwin32 creating python com objects