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 C3177

'enum' : can only specify underlying type for managed enum

An enum was declared incorrectly. How this error is resolved depends on whether you are compiling with /com+.

The following sample generates C3177:

#using<mscorlib.dll>   // Delete, if you are not using /com+

enum E : int { e1, e2 };   // C3177
// To resolve for /com+
// __value enum E : int { e1, e2 };
// To resolve without /com+
// enum E { e1, e2 };

void main() {
}