XLL+ Class Library (6.3)

CXlMarshaledData::Attach

Attaches the supplied data to the object, replacing any current contents

void Attach(
   void* pvData,
   size_t cbData
) const;

Parameters

pvData

A pointer to an array of bytes, of size cbData.

cbData

Size of array of bytes.

Remarks

This function removes the current contents and replace them with a reference to the supplied data buffer. The buffer must have been allocated using the CXlMarshaledData::Alloc() static method.

Requirements

Header: xlmarshal.h

See Also

CXlMarshaledData Class | CXlMarshaledData Methods