Wtypes.h 中的非托管类型 | 非托管 C 语言类型 | 托管类名 | 说明 |
---|---|---|---|
HANDLE | void* | tabindex="0" keywords="frlrfSystemIntPtrClassTopic">System.IntPtr | 32 位 |
BYTE | unsigned char | tabindex="0" keywords="frlrfSystemByteClassTopic">System.Byte | 8 位 |
SHORT | short | tabindex="0" keywords="frlrfSystemInt16ClassTopic">System.Int16 | 16 位 |
WORD | unsigned short | tabindex="0" keywords="frlrfSystemUInt16ClassTopic">System.UInt16 | 16 位 |
INT | int | tabindex="0" keywords="frlrfSystemInt32ClassTopic">System.Int32 | 32 位 |
UINT | unsigned int | tabindex="0" keywords="frlrfSystemUInt32ClassTopic">System.UInt32 | 32 位 |
LONG | long | tabindex="0" keywords="frlrfSystemInt32ClassTopic">System.Int32 | 32 位 |
BOOL | long | tabindex="0" keywords="frlrfSystemSByteClassTopic">System.Int32 | 32 位 |
DWORD | unsigned long | tabindex="0" keywords="frlrfSystemUInt32ClassTopic">System.UInt32 | 32 位 |
ULONG | unsigned long | tabindex="0" keywords="frlrfSystemUInt32ClassTopic">System.UInt32 | 32 位 |
CHAR | char | tabindex="0" keywords="frlrfSystemCharClassTopic">System.Char | 用 ANSI 修饰。 |
LPSTR | char* | tabindex="0" keywords="frlrfSystemStringClassTopic">System.String 或 tabindex="0" keywords="frlrfSystemTextStringBuilderClassTopic">System.StringBuilder | 用 ANSI 修饰。 |
LPCSTR | Const char* | tabindex="0" keywords="frlrfSystemStringClassTopic">System.String 或 tabindex="0" keywords="frlrfSystemTextStringBuilderClassTopic">System.StringBuilder | 用 ANSI 修饰。 |
LPWSTR | wchar_t* | tabindex="0" keywords="frlrfSystemStringClassTopic">System.String 或 tabindex="0" keywords="frlrfSystemTextStringBuilderClassTopic">System.StringBuilder | 用 Unicode 修饰。 |
LPCWSTR | Const wchar_t* | tabindex="0" keywords="frlrfSystemStringClassTopic">System.String 或 tabindex="0" keywords="frlrfSystemTextStringBuilderClassTopic">System.StringBuilder | 用 Unicode 修饰。 |
FLOAT | Float | tabindex="0" keywords="frlrfSystemSingleClassTopic">System.Single | 32 位 |
DOUBLE | Double | tabindex="0" keywords="frlrfSystemDoubleClassTopic">System.Double | 64 位 |
----------------南京程序员俱乐部-------------------
网址: Http://WWW.NjPro.CN
类别 | 类名 | 说明 | Visual Basic 数据类型 | C# 数据类型 | C++ 托管扩展数据类型 | JScript 数据类型 |
---|---|---|---|---|---|---|
整数 | tabindex="0" keywords="frlrfSystemByteClassTopic">Byte | 8 位的无符号整数。 | Byte | byte | char | Byte |
tabindex="0" keywords="frlrfSystemSByteClassTopic">SByte | 8 位的有符号整数。 不符合 CLS。 | SByte 无内置类型。 | sbyte | signed char | SByte | |
tabindex="0" keywords="frlrfSystemInt16ClassTopic">Int16 | 16 位的有符号整数。 | Short | short | short | short | |
tabindex="0" keywords="frlrfSystemInt32ClassTopic">Int32 | 32 位的有符号整数。 | Integer | int | int - 或 - long | int | |
tabindex="0" keywords="frlrfSystemInt64ClassTopic">Int64 | 64 位的有符号整数。 | Long | long | __int64 | long | |
tabindex="0" keywords="frlrfSystemUInt16ClassTopic">UInt16 | 16 位的无符号整数。 不符合 CLS。 | UInt16 无内置类型。 | ushort | unsigned short | UInt16 | |
tabindex="0" keywords="frlrfSystemUInt32ClassTopic">UInt32 | 32 位的无符号整数。 不符合 CLS。 | UInt32 无内置类型。 | uint | unsigned int - 或 - unsigned long | UInt32 | |
tabindex="0" keywords="frlrfSystemUInt64ClassTopic">UInt64 | 64 位的无符号整数。 不符合 CLS。 | UInt64 无内置类型。 | ulong | unsigned __int64 | UInt64 | |
浮点 | tabindex="0" keywords="frlrfSystemSingleClassTopic">Single | 单精度(32 位)浮点数字。 | Single | float | float | float |
tabindex="0" keywords="frlrfSystemDoubleClassTopic">Double | 双精度(64 位)浮点数字。 | Double | double | double | double | |
逻辑 | tabindex="0" keywords="frlrfSystemBooleanClassTopic">Boolean | 布尔值(真或假)。 | Boolean | bool | bool | bool |
其他 | tabindex="0" keywords="frlrfSystemCharClassTopic">Char | Unicode(16 位)字符。 | Char | char | wchar_t | char |
tabindex="0" keywords="frlrfSystemDecimalClassTopic">Decimal | 96 位十进制值。 | Decimal | decimal | Decimal | Decimal | |
tabindex="0" keywords="frlrfSystemIntPtrClassTopic">IntPtr | 大小取决于基础平台(32 位平台上为 32 位值,64 位平台上为 64 位值)的有符号整数。 | IntPtr 无内置类型。 | IntPtr 无内置类型。 | IntPtr 无内置类型。 | IntPtr | |
tabindex="0" keywords="frlrfSystemUIntPtrClassTopic">UIntPtr | 大小取决于基础平台的无符号整数(32 位平台上为 32 位值,64 位平台上为 64 位值)。 不符合 CLS。 | UIntPtr 无内置类型。 | UIntPtr 无内置类型。 | UIntPtr 无内置类型。 | UIntPtr | |
类对象 | tabindex="0" keywords="frlrfSystemObjectClassTopic">Object | 对象层次结构的根。 | Object | object | Object* | Object |
tabindex="0" keywords="frlrfSystemStringClassTopic">String | Unicode 字符的不变的定长串。 | String | string | String* | String |
----------------南京程序员俱乐部-------------------
网址:Http://WWW.NjPro.CN