Click here to Skip to main content
15,914,327 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

iam pretty new to c++ and i want to store the clipboard into a string, manipulate the string, and put the manipulated string back into the clipboard.

EXAMPLE:
1. copying folloing lines into the clipboard

LineLineLineLine
LineLineLineLine

2. storing this text in a string.

3. manipulate the string.

LineLineLineLine
INSERT
LineLineLineLine
INSERT

4. Put this string back into the clipboard.

i found serveral threads on msdn => http://msdn.microsoft.com/en-us/library/93ks5wxz.aspx
but i couldnt compile them. and i have no clue about the syntax.

but i think i could do it if you give me and example.


thanks
Posted
Updated 6-Sep-11 15:21pm
v2

What you tried to compile is actually C++/CLI code. You need clipboard API reference[^]. There's an example there, too, though it is quite sophisticated (the whole windows application)
 
Share this answer
 
The link you have specified is just pointing to be .net programming guide.
you want .net implementation or the c++ implentation.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900