• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

c#中的数据类型如何与API中的类型定义对应

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

Unmanaged type in Wtypes.h

Unmanaged C language type

Managed class name

Description

HANDLE

void*

System..::.IntPtr

32 bits on 32-bit Windows operating systems, 64 bits on 64-bit Windows operating systems.

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.Text..::.StringBuilder

Decorate with ANSI.

LPCSTR

Const char*

System.Text..::.StringBuilder

Decorate with ANSI.

LPWSTR

wchar_t*

System.Text..::.StringBuilder

Decorate with Unicode.

LPCWSTR

Const wchar_t*

System.Text..::.StringBuilder

Decorate with Unicode.

FLOAT

Float

System..::.Single

32 bits

DOUBLE

Double

System..::.Double

64 bits

 

 固定大小的缓冲区

http://msdn.microsoft.com/zh-cn/library/zycewsya(VS.80).aspx


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C#事件与委托发布时间:2022-07-10
下一篇:
C#常用工具总结-海风吹发布时间:2022-07-10
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap