CoderSource.net
Search
Copying a string to the clipboard
Started by theDentist at 03-05-2006 9:23 AM. Topic has 0 replies.

Print Search « Previous Thread Next Thread »
   03-05-2006, 9:23 AM
theDentist is not online. Last active: 1/5/2008 4:01:46 PM theDentist

Top 10 Posts
Joined on 12-05-2005
Posts 42
Copying a string to the clipboard

Tongue Tied [:S] 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


   Report 
Codersource.Net » Programming » MFC Programming » Copying a string to the clipboard

MENU
Home
MFC 
C++
.Net
WIN32
Programming
Forum
My Articles
Welcome to Codersource.Net Login | Register | Faq  

Google
 

NOTES:


Thanks for visiting our CoderSource.net. This site will be improved with more articles. Interested visitors can also submit their articles through the Submit Article link.Your article will also be published after due consideration by the editor. 

© Copyright 2003. All rights on content reserved by CoderSource.net. Contact    About Us