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 C2691

'date type' : invalid type for managed array element

A managed array can include managed types and native types, but some types are not allowed, such as pointers to unmanaged types.

The following sample generates C2691:

#using <mscorlib.dll>

void main() {
   int * a1[] = new __gc int * [20];   // C2691

   // try the code below to resolve the error
   // int * a1 = new int [20];
}