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 C2118

negative subscript or subscript is too large

The value defining the array size is larger than the maximum array size or smaller than zero. The following sample generates C2118:

void main() {
   int array1[-1];   // C2118
   int array2[3];      // ok
}