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
查看全文
相关阅读:
MySQL数据库优化的八种方式(经典必看)
HTML5之应用缓存---manifest---缓存使用----HTML5的manifest缓存
ajax方法总结
十分钟入门less(翻译自:Learn lESS in 10 Minutes(or less))
MySQL主从复制技术(纯干货)
table不能遗露了tbody
DOM 之selection
DOM 其他一些特性
CSSOM视图模式
DOM 节点实例操作
原文地址:https://www.cnblogs.com/toto0473/p/2860281.html
最新文章
linux 出现 version `CXXABI_1.3.8的问题l ibstdc++.so.6.0.24 下载
pythohn3.7 爬虫豆瓣电影排行榜
python中继承父类的例子(python3的语法)
crontab定时任务居然不执行
APScheduler中两种调度器的区别及使用过程中要注意的问题
LINUX下的crond的介绍和使用简介
HTML5学习之语义化标签(一)
jQuery 事件用法详解
form表单那点事儿(下) 进阶篇
form表单那点事儿(上) 基础篇
热门文章
CSS之纯CSS画的基本图形(矩形、圆形、三角形、多边形、爱心、八卦等)
移动端一些小问题
CSS命名
JQuery轮播图
jQuery中的100个技巧
AngularJs的$http发送POST请求,php无法接收Post的数据解决方案
原创:去繁存简,回归本源:微信小程序公开课信息分析《一》
CSS3之过渡及2D变换
Bootstrap 之 Carousel
微信小程序探究
Copyright © 2011-2022 走看看