Microsoft SDK for Java

ClassArrayAlloc

Creates an array of objects given the class signature.

Syntax

HObject* __cdecl ClassArrayAlloc(int type, int cItems, char *szSig);

Return Value

Returns an allocated object array.

Parameters

type Set this parameter to T_CLASS. Otherwise, the function will behave like ArrayAlloc and return an array of primitives. The exact type depends on whether this parameter is set to T_BOOLEAN, T_BYTE, T_CHAR, T_DOUBLE, T_FLOAT, T_INT, T_LONG, or T_SHORT.
cItems The number of elements in the array to allocate.
*szSig The signature of the class if type is T_CLASS. (For example, java/awt/Rectangle.)

© 1999 Microsoft Corporation. All rights reserved. Terms of use.