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 C3366

'variable' : static data members of managed classes must be defined within the class definition

You attempted to reference a static member of a NGWS class or interface outside the definition of that class or interface.

For example, the following example generates C3366:

#using <mscorlib.dll>

__gc class X {
   public:
   static int i;   // initialize i here to avoid C3366
};

int X::i = 5;   // C3366

int main() {
   return 0;
}