idataobject

How to perform a deep copy of an object not marked as serializable (in C#)?

I am attempting to create a Clipboard stack in C#. Clipboard data is stored in System.Windows.Forms.DataObject objects. I wanted to store each clipboard entry (IDataObject) directly in a Generic list. Due to the way Bitmaps (seem to be) stored I am thinking I need to perform a deep copy first before I add it to the list. I attempted to...

How can I create a IDataObject instance with Delphi?

This C++ code shows how OLE can be used to simulate a file drag and drop to simulate a 'Send to...' operation. This will open the standard mail client with the selected file(s) as an attachment, a very interesting alternative to the mailto: protocol handler. Which is the best (short and safe) way to create the neccessary instance of ID...

Office Clipboard- status check programmatically ?

I have my own (patched)implementation of IDataObject::GetData say MyGetData. When I copy the data with Office Clipboard on, I get a call in MyGetData by Office Clipboard which tries to get the data to be pasted in its own clipboard viewer window the application which is pasting the copied data. I want to differentiate between these t...

Office clipboard takes time to show changes

I am facing a very weird problem in Excel. I have overridden the CTRL+C and CTRL+V keys and on copy, I put my custom DataObject on the clipboard that contains both the Excel formats and my custom formats. I copy my data to the clipboard and it gets copied without any problem. I can also see it in the Office Clipboard. Now I copy some te...