剪贴板=>字符串(C ++) [英] clipboard => string (c++)

查看:106
本文介绍了剪贴板=>字符串(C ++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我对C ++很陌生,我想将剪贴板存储到字符串中,操纵字符串,然后将操纵过的字符串放回剪贴板中.

示例:
1.将以下行复制到剪贴板中

LineLineLineLine
LineLineLineLine

2.将此文本存储在字符串中.

3.操作字符串.

LineLineLineLine
插入
LineLineLineLine
插入

4.将此字符串放回剪贴板.

我发现msdn =>上的服务器线程 http://msdn.microsoft.com/en-us/library/93ks5wxz.aspx
但是我无法编译它们.而且我对语法一无所知.

但是我想我可以做到 ,如果你给我和例子.


感谢

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

推荐答案

您尝试编译的实际上是C ++/CLI代码.您需要剪贴板API 参考 [
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)


您指定的链接只是指向.net编程指南.
您需要.net实现或c ++实现.
The link you have specified is just pointing to be .net programming guide.
you want .net implementation or the c++ implentation.


这篇关于剪贴板=>字符串(C ++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆