This topic has not yet been rated - Rate this topic

v1_enum

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

[v1_enum]

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
[module(name="MyLibrary")];

[export, v1_enum] 
enum eList { 
   e1 = 1, 
   e2 = 2
};
Attribute Context

Applies to

Enumerated type

Repeatable

No

Required attributes

None

Invalid attributes

None

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.