C#与VC下数据类型对应列表
来源:互联网 发布:blog搭建并与mysql分离 编辑:程序博客网 时间:2024/06/06 09:24
The following table lists data types used in the Win32 API (listed in Wtypes.h) and C-style functions. Many unmanaged libraries contain functions that pass these data types as parameters and return values. The third column lists the corresponding .NET Framework built-in value type or class that you use in managed code. In some cases, you can substitute a type of the same size for the type listed in the table.
Unmanaged type in Wtypes.h Unmanaged C language type Managed class name Description
HANDLE void* System.IntPtr 32 bits
BYTE unsigned char System.Byte 8 bits
SHORT short System.Int16 16 bits
WORD unsigned short System.UInt16 16 bits
INT int System.Int32 32 bits
UINT unsigned int System.UInt32 32 bits
LONG long System.Int32 32 bits
BOOL long System.Int32 32 bits
DWORD unsigned long System.UInt32 32 bits
ULONG unsigned long System.UInt32 32 bits
CHAR char System.Char Decorate with ANSI.
LPSTR char* System.String or System.StringBuilder Decorate with ANSI.
LPCSTR Const char* System.String or System.StringBuilder Decorate with ANSI.
LPWSTR wchar_t* System.String or System.StringBuilder Decorate with Unicode.
LPCWSTR Const wchar_t* System.String or System.StringBuilder Decorate with Unicode.
FLOAT Float System.Single 32 bits
DOUBLE Double System.Double 64 bits
For corresponding types in Visual Basic .NET, C#, and the Managed Extensions for C++, see the Introduction to the .NET Framework Class Library.
Unmanaged type in Wtypes.h Unmanaged C language type Managed class name Description
HANDLE void* System.IntPtr 32 bits
BYTE unsigned char System.Byte 8 bits
SHORT short System.Int16 16 bits
WORD unsigned short System.UInt16 16 bits
INT int System.Int32 32 bits
UINT unsigned int System.UInt32 32 bits
LONG long System.Int32 32 bits
BOOL long System.Int32 32 bits
DWORD unsigned long System.UInt32 32 bits
ULONG unsigned long System.UInt32 32 bits
CHAR char System.Char Decorate with ANSI.
LPSTR char* System.String or System.StringBuilder Decorate with ANSI.
LPCSTR Const char* System.String or System.StringBuilder Decorate with ANSI.
LPWSTR wchar_t* System.String or System.StringBuilder Decorate with Unicode.
LPCWSTR Const wchar_t* System.String or System.StringBuilder Decorate with Unicode.
FLOAT Float System.Single 32 bits
DOUBLE Double System.Double 64 bits
For corresponding types in Visual Basic .NET, C#, and the Managed Extensions for C++, see the Introduction to the .NET Framework Class Library.
- C#与VC下数据类型对应列表
- C#与VC++数据类型对应关系
- C#与VC++数据类型对应关系
- C#与VC++数据类型对应关系
- VC与VB数据类型对应关系
- VC++与VB数据类型对应关系
- VC++ 与VB 数据类型对应关系
- VC++与VB数据类型对应关系
- C#和C++下数据类型对应表
- C#和C++下数据类型对应表
- C#与C/C++数据类型对应关系
- MSSQL与C#中的数据类型对应表
- C++数据类型与C#对应关系
- C#与C++数据类型对应表
- c#数据类型与所对应的类
- c与c#数据类型对应关系
- C++数据类型与C#对应关系
- Sql Server与c#之间数据类型对应
- WAP 系统的架构
- URLS
- Java学习资源篇
- 删除 IE_Bar
- 用了一段yum,实在受不了其龟速,决定全面转向apt
- C#与VC下数据类型对应列表
- 袁红岗:Ajax,只是一种过渡技术
- acm hnu 10182 置换排列
- 一道C的题
- 一些系统包和函数的使用
- 浮点数转换为字符串
- oracle系统包
- 如何重写Object的Equals方法?
- 指针引用