Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 2.04 KB

data-objects-and-data-sources-ole.md

File metadata and controls

32 lines (21 loc) · 2.04 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Data Objects and Data Sources (OLE)
Data Objects and Data Sources (OLE)
11/04/2016
data objects [MFC], definition
data transfer [MFC]
OLE [MFC], data transfer
data sources [MFC], definition
data transfer [MFC], definition
OLE [MFC], data objects
OLE [MFC], data sources
8f68eed8-0ce8-4489-a4cc-f95554f89090

Data Objects and Data Sources (OLE)

When you perform a data transfer, either by using the Clipboard or drag and drop, the data has a source and a destination. One application provides the data for copying and another application accepts it for pasting. Each side of the transfer needs to perform different operations on the same data for the transfer to succeed. The Microsoft Foundation Class (MFC) Library provides two classes that represent each side of this transfer:

  • Data sources (as implemented by COleDataSource objects) represent the source side of the data transfer. They are created by the source application when data is to be copied to the Clipboard, or when data is provided for a drag-and-drop operation.

  • Data objects (as implemented by COleDataObject objects) represent the destination side of the data transfer. They are created when the destination application has data dropped into it, or when it is asked to perform a paste operation from the Clipboard.

The following articles explain how to use data objects and data sources in your applications. This information applies to both container and server applications, because both may be called upon to copy and paste data.

In This Section

Drag and Drop

Clipboard

See also

OLE
COleDataObject Class
COleDataSource Class