|
SafeArrayPutElement
psa, rgIndices, pvData)
SAFEARRAY FAR* psa
long FAR* rgIndices
void FAR* pvData
Assigns a single element into the array.
Parameters
psa
Pointer to an array descriptor created by SafeArrayCreate.
rgIndices
Pointer to a vector of indexes for each dimension of the array. The rightmost
(least significant) dimension is rgIndices[0]. The leftmost dimension is stored at rgIndices[psa->cDims 1].
pvData
Pointer to the data to assign to the array. VT_DISPATCH, VT_UNKNOWN, and
VT_BSTR variant types are pointers and don't require another level of indirection.
Comments
This function automatically calls SafeArrayLock and SafeArrayUnlock before and after assigning the element. If the data element is a string, object, or variant, the function copies it
correctly. If the existing element is a string, object or variant, it is cleared
correctly.
Note that you can have multiple locks on an array, so you can put elements
into an array while the array is locked by other operations.
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|