DVARIANT.ToDoubleArrayAllocmethod
Extracts an array of DOUBLE values from DVARIANT.
Syntax
FUNCTION ToDoubleArrayAlloc (BYVAL pprgn AS ULONGINT PTR PTR) AS ULONG
Parameters
| Name | Description | |
|---|---|---|
pprgf | Pointer to a DOUBLE PTR variable that will recive a pointer to an array of DOUBLE values extracted from the source DVARIANT. |
Return value
The count of DOUBLE elements extracted from the DVARIANT.
Description
Extracts an array of DOUBLE values from DVARIANT.
Remarks
This helper function is used when the calling application expects a DVARIANT to hold an array of DOUBLE values.
If DVARIANT is of type VT_ARRAY OR VT_R8, this function extracts an array of DOUBLE values into a newly allocated array. The calling application is responsible for using CoTaskMemFree to release the array pointed to by pprgn when it is no longer neede
Reference
- Include file
DVARIANT.INC - Defined in AfxNova/DVARIANT.inc:2179
- Documented in COM/DVARIANT Class.md
- Topic: DVARIANT Class