I can't seem to find any information or understanding why the compiler throws error " E2029 'OF' expected but '[' found " when I try to use static array instead of dynamic.
I'm calling functions form a DLL file, so I'm having this code:
function RetrieveDSOData(whatchannels: uchar; var DSOCH1, DSOCH2: array of double;
var LADATA: array of ushort; Nth_Sample: uchar): longint;
stdcall; external 'E_l80.dll';
This compiles ok, but I have AV errors in DLL files, and since I suspect that the issue is the dynamic array does not get size specified, I wanted to throw it a static array.
But, if I write the above function with
DSOCH1, DSOCH2: array [0..31] of double;
I get the compiler error mentioned above.
Additional info: I have instructions on how to use this DLL written for C, and since I barely know it, I might be missing something else around these arrays: This is the original function:
long RetrieveDSOData(unsigned char whatchannels, double *DSOCH1,
double *DSOCH2, unsigned short *LADATA, unsigned char Nth_Sample)
with explanations like this:
*DSOCHX: A pointer to an array of points from the DSO channels.
*LADATA: A pointer to an array of LA data
Any help would be appreciated. (and please do not edit this question just for deleting this last sentence... makes no sense...)
type TMyArray = array[0..31] of Double;TMyArray = array[0..31] of doubleand then use TMyArray.