zoukankan
html css js c++ java
C#调用DLL文件时参数对应表
Wtypes.h 中的非托管类型
非托管 C 语言类型
托管类名
说明
HANDLE
void*
System.IntPtr
32 位
BYTE
unsigned char
System.Byte
8 位
SHORT
short
System.Int16
16 位
WORD
unsigned short
System.UInt16
16 位
INT
int
System.Int32
32 位
UINT
unsigned int
System.UInt32
32 位
LONG
long
System.Int32
32 位
BOOL
long
System.Int32
32 位
DWORD
unsigned long
System.UInt32
32 位
ULONG
unsigned long
System.UInt32
32 位
CHAR
char
System.Char
用 ANSI 修饰。
LPSTR
char*
System.String 或 System.StringBuilder
用 ANSI 修饰。
LPCSTR
Const char*
System.String 或 System.StringBuilder
用 ANSI 修饰。
LPWSTR
wchar_t*
System.String 或 System.StringBuilder
用 Unicode 修饰。
LPCWSTR
Const wchar_t*
System.String 或 System.StringBuilder
用 Unicode 修饰。
FLOAT
Float
System.Single
32 位
DOUBLE
Double
System.Double
64 位
类别
类名
说明
Visual Basic 数据类型
C# 数据类型
C++ 托管扩展数据类型
JScript 数据类型
整数
Byte
8 位的无符号整数。
Byte
byte
char
Byte
SByte
8 位的有符号整数。
不符合 CLS。
SByte
无内置类型。
sbyte
signed char
SByte
Int16
16 位的有符号整数。
Short
short
short
short
Int32
32 位的有符号整数。
Integer
int
int
- 或 -
long
int
Int64
64 位的有符号整数。
Long
long
__int64
long
UInt16
16 位的无符号整数。
不符合 CLS。
UInt16
无内置类型。
ushort
unsigned short
UInt16
UInt32
32 位的无符号整数。
不符合 CLS。
UInt32
无内置类型。
uint
unsigned int
- 或 -
unsigned long
UInt32
UInt64
64 位的无符号整数。
不符合 CLS。
UInt64
无内置类型。
ulong
unsigned __int64
UInt64
浮点
Single
单精度(32 位)浮点数字。
Single
float
float
float
Double
双精度(64 位)浮点数字。
Double
double
double
double
逻辑
Boolean
布尔值(真或假)。
Boolean
bool
bool
bool
其他
Char
Unicode(16 位)字符。
Char
char
wchar_t
char
Decimal
96 位十进制值。
Decimal
decimal
Decimal
Decimal
IntPtr
大小取决于基础平台(32 位平台上为 32 位值,64 位平台上为 64 位值)的有符号整数。
IntPtr
无内置类型。
IntPtr
无内置类型。
IntPtr
无内置类型。
IntPtr
UIntPtr
大小取决于基础平台的无符号整数(32 位平台上为 32 位值,64 位平台上为 64 位值)。
不符合 CLS。
UIntPtr
无内置类型。
UIntPtr
无内置类型。
UIntPtr
无内置类型。
UIntPtr
类对象
Object
对象层次结构的根。
Object
object
Object*
Object
String
Unicode 字符的不变的定长串。
String
string
String*
String
欢迎来我的新浪博客做客: http://blog.sina.com.cn/toto0473
查看全文
相关阅读:
SEO优化---学会建立高转化率的网站关键词库
从一个程序员的角度看——微信小应用
当AngularJS POST方法碰上PHP
angularJS(6)
彻底解决显示Opencv中Mat图像到Mfc窗口问题
数据结构与算法基础总结
java类别问题
java基础知识
逻辑地址、线性地址、物理地址和虚拟地址的区别
TCP协议中的三次握手和四次挥手(图解)
原文地址:https://www.cnblogs.com/toto0473/p/2860281.html
最新文章
回流(reflow)与重绘(repaint)
H5新增元素
JS继承
Comet——反向Ajax (基础知识)
页面重绘和回流(重排)以及优化
浏览器渲染过程
渐进增强 VS 优雅降级
BFC概念和作用,触发条件
chrome cpu占用100%
vue-cli中的webpack打包配置
热门文章
<b>与<strong> <em>与<i>标签的区别
等高布局
svn 冲突Skipped ‘inm/inm/templates‘ -- Node remains in conflict
圣杯布局,双飞翼布局,和自己独创的布局
有关css3的一些问题
用jQuery实现优酷首页轮播图
ionic + cordova+angularJs 搭建的H5 App完整版总结
angularJS(7)
HTML5的新语义化的标签
angularJS- $http请求
Copyright © 2011-2022 走看看