|
-
November 23rd, 2003, 03:48 PM
#1
SAFEARRAY problem
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|