Bill Roper (billroper) wrote,
Bill Roper

Bounding Along

Well, 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.
Tags: tech, work
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded