NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2690

'operator' : cannot perform pointer arithmetic on managed NGWS frameworks array

In the managed environment of NGWS, the variable that you declare for a managed array is not a pointer such that you can increment it. For example, the following sample generates C2690:

void main(){

int i, j;

// A simple dynamically allocated array.
int a1[] = new int[2];
for (i=0; i < 2; ++i)
    a1[i] = i;

for (i=0; i < a1.Length; ++i)   // Use the Length member
{
    Text.Out.Write(a1[i]);
    Text.Out.Write(' ');
}
Text.Out.WriteLine();
Text.Out.WriteLine(a1.GetRank());

a1++;      // C2690
}