[python-win32] GetClipboardData crashes Python

Mark Hammond mhammond at skippinet.com.au
Sat Nov 29 00:53:08 EST 2003


I'm afraid you struck a bug with the crash - what it is supposed to do is
return a NotImplementedError exception, so it wouldn't have really helped.

I have just added a new win32clipboard.GetClipboardDataHandle() function,
which always returns an integer handle, and also fixed the crash with
CF_DIB.  I'd like to add support for getting the binary data of the other
clipboard formats, but I need someone who understands it alittle and is
willing to test for me.

Mark.
  -----Original Message-----
  From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org]On Behalf Of Shamsul Azhar
  Sent: Friday, 28 November 2003 11:09 PM
  To: python-win32 at python.org
  Subject: [python-win32] GetClipboardData crashes Python


  Hi,



  I'm trying to manipulate a bitmap data from within Python, however Python
crashed when using "GetClipboardData". Is there any way of getting bitmap
data from the clipboard?



  The following is what I did :-



  >>> from win32clipboard import *

  >>> OpenClipboard()

  >>> IsClipboardFormatAvailable(CF_DIB)

  1

  >>> GetClipboardData(CF_DIB)





  Thanks in advanced.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20031129/8d74edfb/attachment.html


More information about the Python-win32 mailing list