[python-win32] Creating python com objects

Alex Denham a1eio at hotmail.com
Wed Apr 23 13:17:54 CEST 2008


Hi,

Anybody happen to know how to go about creating a COM object that RegisterDragDrop() will actually accept?

print dropTarget
<COMObject Python.PyIDropTarget>

pythoncom.RegisterDragDrop(_id, dropTarget)

Traceback (most recent call last):
  File "C:\Python25\DragAndDrop.py", line 82, in <module>
    main()
  File "C:\Python25\DragAndDrop.py", line 41, in main
    pythoncom.RegisterDragDrop(_id, dropTarget)
ValueError: argument is not a COM object

Any help appreciated,

Thanks
Alex

_________________________________________________________________
Search and win with BigSnapSearch.com 
http://www.bigsnapsearch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080423/a70472f7/attachment.htm>


More information about the python-win32 mailing list