Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.12 KB

v1-enum.md

File metadata and controls

52 lines (38 loc) · 1.12 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: v1_enum
v1_enum (C++ COM Attribute)
10/02/2018
vc-attr.v1_enum
v1_enum attribute
2fe92d92-81b9-4a1c-b6ce-437d0eb770ca

v1_enum

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

Syntax

[v1_enum]

Remarks

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

Example

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
};

Requirements

Attribute context Value
Applies to Enumerated type
Repeatable No
Required attributes None
Invalid attributes None

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

See also

IDL Attributes
Typedef, Enum, Union, and Struct Attributes