Click here to Skip to main content
15,885,546 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 443.8K   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.
// stdafx.cpp : source file that includes just the standard includes
// SimpleTextTransfer.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"


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