Bounding Along
Jul. 6th, 2005 12:29 pmWell, this should shut BoundsChecker up for a bit.
It seems that there was a struct that contained a pointer to what was actually an array of strings, but that was being handled simply as a pointer to the first string, then accessed with the array operator in the code. This is fixed by converting the declaration to this:
CString (*MyArray)[10];
and referencing it as:
int nLen = (*MyArray)[i].GetLength();
Or, at least, so I currently think.
It seems that there was a struct that contained a pointer to what was actually an array of strings, but that was being handled simply as a pointer to the first string, then accessed with the array operator in the code. This is fixed by converting the declaration to this:
CString (*MyArray)[10];
and referencing it as:
int nLen = (*MyArray)[i].GetLength();
Or, at least, so I currently think.
no subject
Date: 2005-07-06 06:16 pm (UTC)no subject
Date: 2005-07-07 03:59 am (UTC)