Freigeben über


COleDataObject::Attach

Call this function to associate the COleDataObject object with an OLE data object.

void Attach(
   LPDATAOBJECT lpDataObject,
   BOOL bAutoRelease = TRUE 
);

Parameters

  • lpDataObject
    Points to an OLE data object.

  • bAutoRelease
    TRUE if the OLE data object should be released when the COleDataObject object is destroyed; otherwise FALSE.

Remarks

For more information, see IDataObject in the Windows SDK.

Requirements

Header: afxole.h

See Also

Concepts

COleDataObject Class

COleDataObject Members

Hierarchy Chart

COleDataObject::AttachClipboard

COleDataObject::Detach

COleDataObject::Release