|
Hi everyone,
What seems like a simple task, is now sooooo frustrating. I am trying to copy a string ( in a CString variable), to the clipboard. I would have thought this would be fairly easy but no. My problem is how do I associate the string with the COleDataSource object which I can then use to transfer it to the clipboard. I have created a new COleDataSource pointer, created a CShareFile object, archived the CShareFile object, and serialized it. I have then retrieved the handle from the mem file created, and cached the COleDataSource object into it in the correct format (CF_TEXT). I should then be able to set the clipboard with the COleDataSource object. Nowhere in all this can I attach my string to the COleDataSource. Have I got this right, any help is much appreciated.
Peter
|