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 C3266

'class' : a class-constructor must have a 'void' parameter list

Constructors in a class using Managed Extensions for C++ cannot take parameters. The following sample generates C3266:

#using <mscorlib.dll>

__gc class X {
   static X(int i) { // C3266
   }

   /* the following code resolves the error
   static X() {
   }
   */
};

void main() {
}