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 C2540

non-constant expression as array bound

An array must have a constant bound.

Example

int i;
int A[i];        // error, i is nonconstant
const j = 20;
int A[j];        // OK, j is constant
int B[32];       // OK, 32 is a literal