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 C3168

'type' : illegal type for managed enum underlying type

The underlying type you specified for the enum type was not valid. The underlying type must be an integral C++ type or a corresponding Managed Extensions for C++ type.

The following sample generates C3168:

#using <mscorlib.dll>

__gc class G {
};

__value enum E : G {e};   // C3168

// use the line below to resolve the error
// __value enum E {e};

void main() {
}