this code works fine if i create a 2 or 3 dimensional array.
but if i try to make a safearray with 9 dimension m_parray goes to NULL.

I dont know if i'm doing something wrong or simply Safearrays
doesn't support more than 3 dimensions.
Can someone help me?

Thanks in advance

SAFEARRAYBOUND *arrayBounds;
long nDims = 9;

arrayBounds = new SAFEARRAYBOUND [nDims];

for ( i = 0; i < nDims; i++ ) {
arrayBounds[i].lLbound = 0;
arrayBounds[i].cElements = 15
}

SAFEARRAY *m_parray = SafeArrayCreate(VT_VARIANT, nDims, arrayBounds); // m_parray is NULL after the call