BasicType
适用范围:Visual Studio
Visual Studio for Mac
Visual Studio Code
指定符号的基本类型。
语法
enum BasicType {
btNoType = 0,
btVoid = 1,
btChar = 2,
btWChar = 3,
btInt = 6,
btUInt = 7,
btFloat = 8,
btBCD = 9,
btBool = 10,
btLong = 13,
btULong = 14,
btCurrency = 25,
btDate = 26,
btVariant = 27,
btComplex = 28,
btBit = 29,
btBSTR = 30,
btHresult = 31,
btChar16 = 32, // char16_t
btChar32 = 33, // char32_t
btChar8 = 34 // char8_t
};
元素
btNoType 未指定基本类型。
btVoid 基本类型为 void
。
btChar 基本类型为 char
(C/C++ 类型)。
btWChar 基本类型是一种宽 (Unicode) 字符 (WCHAR
)。
btInt 基本类型为 signed int
(C/C++ 类型)。
btUInt 基本类型为 unsigned int
(C/C++ 类型)。
btFloat 基本类型是浮点数 (FLOAT
)。
btBCD 基本类型是二进制编码的十进制 (BCD
)。
btBool 基本类型是布尔值 (BOOL
)。
btLong 基本类型为 long int
(C/C++ 类型)。
btULong 基本类型为 unsigned long int
(C/C++ 类型)。
btCurrency 基本类型是货币。
btDate 基本类型是日期/时间 (DATE
)。
btVariant 基本类型是变量类型结构 (VARIANT
)。
btComplex 基本类型是复数。
btBit 基本类型是位。
btBSTR 基本类型是基本字符串或二进制字符串 (BSTR
)。
btHresult 基本类型是 HRESULT
。
备注
此枚举中的值由 IDiaSymbol::get_baseType 方法返回。
要求
标头:cvconst.h