-
clipboard => string
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 i if you give me and example.
thanks
-
Re: clipboard => string
-
Re: clipboard => string
Although you have posted in the Windows API forum, the sample code you reference is for .net c++/clr and it will compile fine if you set the clr switch in your project. The syntax is different - but it depends on what direction you want to move forward with in your programming. The Windows API is the oldest and most basic (it's really c, not c++) and .net is the latest. Regardless of which method you choose there is going to be a learning curve - working with raw char buffers in the API (of course, it would also help use string objects) or System::String^ in .net. Personally, I would recommend .net.
-
Re: clipboard => string
@to 0xC0000005
Please keep on-topic and let us talking about Windows API in a Windows API forum!
Thank you!