Assume I have a PB DLL with the following exported method that
has one array argument:
MyMethod(BYVAL PBArrayIn as DWORD) EXPORT
Then, in my PB code I map the memory to this array as follows:
DIM PBArray(5, 3, 2) as double AT PBArrayIn
If I want to call this method from 'C', how should I dimension
the array that I am passing in? I was told to do the following:
double PassedArray[2][3][5]; (dimensioned opposite as PBArray above)
Is this right? Why?
Thanks for you help on this!
has one array argument:
MyMethod(BYVAL PBArrayIn as DWORD) EXPORT
Then, in my PB code I map the memory to this array as follows:
DIM PBArray(5, 3, 2) as double AT PBArrayIn
If I want to call this method from 'C', how should I dimension
the array that I am passing in? I was told to do the following:
double PassedArray[2][3][5]; (dimensioned opposite as PBArray above)
Is this right? Why?
Thanks for you help on this!
Comment