For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Directs that the specified enumerated type be transmitted as a 32-bit entity rather than the 16-bit default.


The v1_enum C++ attribute has the same functionality as the v1_enum MIDL attribute.

The following code shows a use of v1_enum:

// cpp_attr_ref_v1_enum.cpp  
// compile with: /LD  
[export, v1_enum]   
enum eList {   
   e1 = 1,   
   e2 = 2  

Attribute Context

Applies toEnumerated type
Required attributesNone
Invalid attributesNone

For more information about the attribute contexts, see Attribute Contexts.

IDL Attributes
Typedef, Enum, Union, and Struct Attributes
Attributes Samples