C#调用DLL文件时参数对应表(转)

Wtypes.h 中的非托管类型非托管 C 语言类型托管类名说明
HANDLEvoid* tabindex="0" keywords="frlrfSystemIntPtrClassTopic">System.IntPtr32 位
BYTEunsigned char tabindex="0" keywords="frlrfSystemByteClassTopic">System.Byte8 位
SHORTshort tabindex="0" keywords="frlrfSystemInt16ClassTopic">System.Int1616 位
WORDunsigned short tabindex="0" keywords="frlrfSystemUInt16ClassTopic">System.UInt1616 位
INTint tabindex="0" keywords="frlrfSystemInt32ClassTopic">System.Int3232 位
UINTunsigned int tabindex="0" keywords="frlrfSystemUInt32ClassTopic">System.UInt3232 位
LONGlong tabindex="0" keywords="frlrfSystemInt32ClassTopic">System.Int3232 位
BOOLlong tabindex="0" keywords="frlrfSystemSByteClassTopic">System.Int3232 位
DWORDunsigned long tabindex="0" keywords="frlrfSystemUInt32ClassTopic">System.UInt3232 位
ULONGunsigned long tabindex="0" keywords="frlrfSystemUInt32ClassTopic">System.UInt3232 位
CHARchar tabindex="0" keywords="frlrfSystemCharClassTopic">System.Char用 ANSI 修饰。
LPSTRchar* tabindex="0" keywords="frlrfSystemStringClassTopic">System.String 或 tabindex="0" keywords="frlrfSystemTextStringBuilderClassTopic">System.StringBuilder用 ANSI 修饰。
LPCSTRConst char* tabindex="0" keywords="frlrfSystemStringClassTopic">System.String 或 tabindex="0" keywords="frlrfSystemTextStringBuilderClassTopic">System.StringBuilder用 ANSI 修饰。
LPWSTRwchar_t* tabindex="0" keywords="frlrfSystemStringClassTopic">System.String 或 tabindex="0" keywords="frlrfSystemTextStringBuilderClassTopic">System.StringBuilder用 Unicode 修饰。
LPCWSTRConst wchar_t* tabindex="0" keywords="frlrfSystemStringClassTopic">System.String 或 tabindex="0" keywords="frlrfSystemTextStringBuilderClassTopic">System.StringBuilder用 Unicode 修饰。
FLOATFloat tabindex="0" keywords="frlrfSystemSingleClassTopic">System.Single32 位
DOUBLEDouble tabindex="0" keywords="frlrfSystemDoubleClassTopic">System.Double64 位





----------------南京程序员俱乐部-------------------

网址: Http://WWW.NjPro.CN

类别类名说明Visual Basic 数据类型C# 数据类型C++ 托管扩展数据类型JScript 数据类型
整数 tabindex="0" keywords="frlrfSystemByteClassTopic">Byte8 位的无符号整数。BytebytecharByte
    tabindex="0" keywords="frlrfSystemSByteClassTopic">SByte8 位的有符号整数。

不符合 CLS。

SByte

无内置类型。

sbytesigned charSByte
    tabindex="0" keywords="frlrfSystemInt16ClassTopic">Int1616 位的有符号整数。Shortshortshortshort
    tabindex="0" keywords="frlrfSystemInt32ClassTopic">Int3232 位的有符号整数。Integerintint

- 或 -

long

int
    tabindex="0" keywords="frlrfSystemInt64ClassTopic">Int6464 位的有符号整数。Longlong__int64long
    tabindex="0" keywords="frlrfSystemUInt16ClassTopic">UInt1616 位的无符号整数。

不符合 CLS。

UInt16

无内置类型。

ushortunsigned shortUInt16
    tabindex="0" keywords="frlrfSystemUInt32ClassTopic">UInt3232 位的无符号整数。

不符合 CLS。

UInt32

无内置类型。

uintunsigned int

- 或 -

unsigned long

UInt32
    tabindex="0" keywords="frlrfSystemUInt64ClassTopic">UInt6464 位的无符号整数。

不符合 CLS。

UInt64

无内置类型。

ulongunsigned __int64UInt64
浮点 tabindex="0" keywords="frlrfSystemSingleClassTopic">Single单精度(32 位)浮点数字。Singlefloatfloatfloat
    tabindex="0" keywords="frlrfSystemDoubleClassTopic">Double双精度(64 位)浮点数字。Doubledoubledoubledouble
逻辑 tabindex="0" keywords="frlrfSystemBooleanClassTopic">Boolean布尔值(真或假)。Booleanboolboolbool
其他 tabindex="0" keywords="frlrfSystemCharClassTopic">CharUnicode(16 位)字符。Charcharwchar_tchar
    tabindex="0" keywords="frlrfSystemDecimalClassTopic">Decimal96 位十进制值。DecimaldecimalDecimalDecimal
    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对象层次结构的根。ObjectobjectObject*Object
    tabindex="0" keywords="frlrfSystemStringClassTopic">StringUnicode 字符的不变的定长串。StringstringString*String





----------------南京程序员俱乐部-------------------

网址:Http://WWW.NjPro.CN

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值