本文介绍了如何从C ++中的剪贴板复制/粘贴?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我还是一个C ++新手,他最近才学到一些文件操作。我在网上查找它,给出的代码超出了我目前的技能。有没有一个简单的方法来做到这一点,或有什么好的教程,可以解释这个从基础。

I'm still a C++ newbie who has only recently learned some file manipulation. I looked it up online and the codes given are way beyond my current skill. Is there a simple way to do this, or are there any good tutorials that can explain this from the very basics?

推荐答案

查看以下API:

In windows look at the following API:







  • OpenClipBoard
  • EmptyClipboard
  • SetClipboardData
  • CloseClipboard
  • GetClipboardData

href =http://msdn.microsoft.com/en-us/library/ms649016%28VS.85%29.aspx>可以在这里找到。
显然这个话题是强大的操作系统相关的。如果你使用一些框架(即MFC / ATL),你通常会找到一些帮助基础设施。此回复引用了WIndows中最低的API级别。如果您计划使用MFC ,如果您更喜欢ATL 。

An extensive discussion can be found here.Obviously this topic is strongly operating system related. And if you are using some framework (ie MFC/ATL) you generally find some helper infrastructure. This reply refer to the lowest API level in WIndows. If you are planning to use MFC have a look here, if you prefer ATL look here.

这篇关于如何从C ++中的剪贴板复制/粘贴?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 01:17