# cbWinArrayToBuf32()

Copies 32-bit data from an array into a Windows memory buffer.

## Function Prototype

C/C++

int cbWinArrayToBuf32 (ULONG *DataArray, HGLOBAL MemHandle, long FirstPoint, long Count);

Visual Basic

Function cbWinArrayToBuf32(DataArray&, ByVal MemHandle&, ByVal FirstPoint&, ByVal CBCount&) As Long

## Arguments

DataArray

The array containing the data to be copied.

MemHandle

This must be a memory handle that was returned by cbWinBufAlloc32() when the buffer was allocated. The data will be copied into this buffer.

FirstPoint

Index of first point in memory buffer where data will be copied to.

Count

Number of data points to copy.

## Returns

- Error code or zero if no errors.

## Notes

- This function copies 32-bit data from an array to a Windows global memory buffer. This would typically be used to initialize the buffer with data before doing an output scan. Using the FirstPoint and Count arguments it is possible to fill a portion of the buffer. This can be useful if you want to send new data to the buffer after a BACKGROUND+CONTINUOUS output scan has been started – for example, during circular buffering.