|
2 | 2 | title: "BasicType | Microsoft Docs"
|
3 | 3 | ms.date: "11/04/2016"
|
4 | 4 | ms.topic: "conceptual"
|
5 |
| -dev_langs: |
| 5 | +dev_langs: |
6 | 6 | - "C++"
|
7 |
| -helpviewer_keywords: |
| 7 | +helpviewer_keywords: |
8 | 8 | - "BasicType enumeration"
|
9 | 9 | ms.assetid: 19ae53ba-cd6e-47b6-9f94-27ae663ce955
|
10 | 10 | author: "mikejo5000"
|
11 | 11 | ms.author: "mikejo"
|
12 | 12 | manager: jillfra
|
13 |
| -ms.workload: |
| 13 | +ms.workload: |
14 | 14 | - "multiple"
|
15 | 15 | ---
|
16 | 16 | # BasicType
|
17 |
| -Specifies the symbol's basic type. |
18 |
| - |
19 |
| -## Syntax |
20 |
| - |
21 |
| -```C++ |
22 |
| -enum BasicType { |
23 |
| - btNoType = 0, |
24 |
| - btVoid = 1, |
25 |
| - btChar = 2, |
26 |
| - btWChar = 3, |
27 |
| - btInt = 6, |
28 |
| - btUInt = 7, |
29 |
| - btFloat = 8, |
30 |
| - btBCD = 9, |
31 |
| - btBool = 10, |
32 |
| - btLong = 13, |
33 |
| - btULong = 14, |
34 |
| - btCurrency = 25, |
35 |
| - btDate = 26, |
36 |
| - btVariant = 27, |
37 |
| - btComplex = 28, |
38 |
| - btBit = 29, |
39 |
| - btBSTR = 30, |
40 |
| - btHresult = 31, |
41 |
| - btChar16 = 32, // char16_t |
42 |
| - btChar32 = 33, // char32_t |
43 |
| -}; |
44 |
| -``` |
45 |
| - |
46 |
| -## Elements |
47 |
| - btNoType |
48 |
| - No basic type is specified. |
49 |
| - |
50 |
| - btVoid |
51 |
| - Basic type is a `void`. |
52 |
| - |
53 |
| - btChar |
54 |
| - Basic type is a `char` (C/C++ type). |
55 |
| - |
56 |
| - btWChar |
57 |
| - Basic type is a wide (Unicode) character (`WCHAR`). |
58 |
| - |
59 |
| - btInt |
60 |
| - Basic type is `signed int` (C/C++ type). |
61 |
| - |
62 |
| - btUInt |
63 |
| - Basic type is `unsigned int` (C/C++ type). |
64 |
| - |
65 |
| - btFloat |
66 |
| - Basic type is a floating-point number (`FLOAT`). |
67 |
| - |
68 |
| - btBCD |
69 |
| - Basic type is a binary-coded decimal (`BCD`). |
70 |
| - |
71 |
| - btBool |
72 |
| - Basic type is a Boolean (`BOOL`). |
73 |
| - |
74 |
| - btLong |
75 |
| - Basic type is a `long int` (C/C++ type). |
76 |
| - |
77 |
| - btULong |
78 |
| - Basic type is an `unsigned long int` (C/C++ type). |
79 |
| - |
80 |
| - btCurrency |
81 |
| - Basic type is currency. |
82 |
| - |
83 |
| - btDate |
84 |
| - Basic type is date/time (`DATE`). |
85 |
| - |
86 |
| - btVariant |
87 |
| - Basic type is a variable type structure (`VARIANT`). |
88 |
| - |
89 |
| - btComplex |
90 |
| - Basic type is a complex number. |
91 |
| - |
92 |
| - btBit |
93 |
| - Basic type is a bit. |
94 |
| - |
95 |
| - btBSTR |
96 |
| - Basic type is a basic or binary string (`BSTR`). |
97 |
| - |
98 |
| - btHresult |
99 |
| - Basic type is an `HRESULT`. |
100 |
| - |
101 |
| -## Remarks |
102 |
| - The values in this enumeration are returned by the [IDiaSymbol::get_baseType](../../debugger/debug-interface-access/idiasymbol-get-basetype.md) method. |
103 |
| - |
104 |
| -## Requirements |
105 |
| - Header: cvconst.h |
106 |
| - |
107 |
| -## See Also |
108 |
| - [Enumerations and Structures](../../debugger/debug-interface-access/enumerations-and-structures.md) |
109 |
| - [IDiaSymbol::get_baseType](../../debugger/debug-interface-access/idiasymbol-get-basetype.md) |
110 |
| - [IDiaSymbol::get_length](../../debugger/debug-interface-access/idiasymbol-get-length.md) |
| 17 | +Specifies the symbol's basic type. |
| 18 | + |
| 19 | +## Syntax |
| 20 | + |
| 21 | +```C++ |
| 22 | +enum BasicType { |
| 23 | + btNoType = 0, |
| 24 | + btVoid = 1, |
| 25 | + btChar = 2, |
| 26 | + btWChar = 3, |
| 27 | + btInt = 6, |
| 28 | + btUInt = 7, |
| 29 | + btFloat = 8, |
| 30 | + btBCD = 9, |
| 31 | + btBool = 10, |
| 32 | + btLong = 13, |
| 33 | + btULong = 14, |
| 34 | + btCurrency = 25, |
| 35 | + btDate = 26, |
| 36 | + btVariant = 27, |
| 37 | + btComplex = 28, |
| 38 | + btBit = 29, |
| 39 | + btBSTR = 30, |
| 40 | + btHresult = 31, |
| 41 | + btChar16 = 32, // char16_t |
| 42 | + btChar32 = 33, // char32_t |
| 43 | +}; |
| 44 | +``` |
| 45 | + |
| 46 | +## Elements |
| 47 | +btNoType |
| 48 | +No basic type is specified. |
| 49 | + |
| 50 | +btVoid |
| 51 | +Basic type is a `void`. |
| 52 | + |
| 53 | +btChar |
| 54 | +Basic type is a `char` (C/C++ type). |
| 55 | + |
| 56 | +btWChar |
| 57 | +Basic type is a wide (Unicode) character (`WCHAR`). |
| 58 | + |
| 59 | +btInt |
| 60 | +Basic type is `signed int` (C/C++ type). |
| 61 | + |
| 62 | +btUInt |
| 63 | +Basic type is `unsigned int` (C/C++ type). |
| 64 | + |
| 65 | +btFloat |
| 66 | +Basic type is a floating-point number (`FLOAT`). |
| 67 | + |
| 68 | +btBCD |
| 69 | +Basic type is a binary-coded decimal (`BCD`). |
| 70 | + |
| 71 | +btBool |
| 72 | +Basic type is a Boolean (`BOOL`). |
| 73 | + |
| 74 | +btLong |
| 75 | +Basic type is a `long int` (C/C++ type). |
| 76 | + |
| 77 | +btULong |
| 78 | +Basic type is an `unsigned long int` (C/C++ type). |
| 79 | + |
| 80 | +btCurrency |
| 81 | +Basic type is currency. |
| 82 | + |
| 83 | +btDate |
| 84 | +Basic type is date/time (`DATE`). |
| 85 | + |
| 86 | +btVariant |
| 87 | +Basic type is a variable type structure (`VARIANT`). |
| 88 | + |
| 89 | +btComplex |
| 90 | +Basic type is a complex number. |
| 91 | + |
| 92 | +btBit |
| 93 | +Basic type is a bit. |
| 94 | + |
| 95 | +btBSTR |
| 96 | +Basic type is a basic or binary string (`BSTR`). |
| 97 | + |
| 98 | +btHresult |
| 99 | +Basic type is an `HRESULT`. |
| 100 | + |
| 101 | +## Remarks |
| 102 | +The values in this enumeration are returned by the [IDiaSymbol::get_baseType](../../debugger/debug-interface-access/idiasymbol-get-basetype.md) method. |
| 103 | + |
| 104 | +## Requirements |
| 105 | +Header: cvconst.h |
| 106 | + |
| 107 | +## See Also |
| 108 | +[Enumerations and Structures](../../debugger/debug-interface-access/enumerations-and-structures.md) |
| 109 | +[IDiaSymbol::get_baseType](../../debugger/debug-interface-access/idiasymbol-get-basetype.md) |
| 110 | +[IDiaSymbol::get_length](../../debugger/debug-interface-access/idiasymbol-get-length.md) |
0 commit comments