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 C3149

'class' : illegal use of managed type 'object type'; did you forget a '*'?

Managed objects have to be declared as pointers.

The following sample generates C3149:

#using <mscorlib.dll>

__gc class A {
};

void main() {
   A a = new A;   // C3149

   // try this to resolve the error
   // A *a = new A;
}