Click here to Skip to main content
15,886,857 members
Articles / Desktop Programming / MFC

Using the Clipboard, Part I: Transferring Simple Text

Rate me:
Please Sign up or sign in to vote.
4.94/5 (57 votes)
6 May 200213 min read 444K   5.3K   168  
In this first article of a four-part series on learning everything you ever wanted to know about programming the Windows Clipboard, you'll discover the basic steps of using the Clipboard API to transfer simple (ANSI) text to and from the Clipboard.
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SimpleTextTransfer", "SimpleTextTransfer.vcproj", "{BCAF903F-BED6-491D-8B6E-388AC9033596}"
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		ConfigName.0 = Debug
		ConfigName.1 = Release
	EndGlobalSection
	GlobalSection(ProjectDependencies) = postSolution
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{BCAF903F-BED6-491D-8B6E-388AC9033596}.Debug.ActiveCfg = Debug|Win32
		{BCAF903F-BED6-491D-8B6E-388AC9033596}.Debug.Build.0 = Debug|Win32
		{BCAF903F-BED6-491D-8B6E-388AC9033596}.Release.ActiveCfg = Release|Win32
		{BCAF903F-BED6-491D-8B6E-388AC9033596}.Release.Build.0 = Release|Win32
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Software Developer (Senior) Microsoft
United States United States
I manage the strategy for the Azure Management Experience documentation at Microsoft. Those technologies include Open-Source DevOps (Terraform, Ansible, Jenkins), Azure PowerShell, and Azure CLI.

Comments and Discussions