C++数据类型与C#对应关系 c#调用WINDWOS API时,非常有用
来源:互联网 发布:知金科技投资有限公司 编辑:程序博客网 时间:2024/05/16 18:55
C++ 输入输出 C#
==================================
char chr[255] O StringBuilder
KCA_DIR I int
LPCSTR I string
int I int
LPSTR O StringBuilder
int* O out int
DWORD I int
DWORD* O out int
BOOL I bool
Rc_DBMgr I IntPtr
long* O out long
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 位
原文:http://www.cnblogs.com/lixyvip/archive/2009/09/02/1559064.html
- C++数据类型与C#对应关系 c#调用WINDWOS API时,非常有用
- C++数据类型与C#对应关系 c#调用WINDWOS API时,非常有用
- 【转帖】C#与C Windows API数据类型对应关系
- C#中调用Windows API时的数据类型对应关系
- C#中调用Windows API时的数据类型对应关系
- C#中调用Windows API时的数据类型对应关系
- C#中调用Windows API时的数据类型对应关系
- C#中调用Windows API时的数据类型对应关系
- C#中调用Windows API时的数据类型对应关系
- C#中调用Windows API时的数据类型对应关系
- C#中调用Windows API时的数据类型对应关系
- C#中调用Windows API时的数据类型对应关系
- C#中调用Windows API时的数据类型对应关系
- C#与C/C++数据类型对应关系
- c与c#数据类型对应关系
- API与C#的数据类型对应关系表
- API与C#的数据类型对应关系表
- API与C#的数据类型对应关系表(JAVA)
- Android 任务和回退堆栈---清除回退堆栈
- Android 任务和回退堆栈---启动任务
- Win32 编程消息常量(C#)
- 如何学习和理解三层架构
- servlet(doGet方法)
- C++数据类型与C#对应关系 c#调用WINDWOS API时,非常有用
- 【第六章】 AOP 之 6.6 通知参数 ——跟我学spring3
- Extjs 前端校验的一些方式总结
- 【第六章】 AOP 之 6.7 通知顺序 ——跟我学spring3
- 【第六章】 AOP 之 6.8 切面实例化模型 ——跟我学spring3
- 【第六章】 AOP 之 6.9 代理机制 ——跟我学spring3
- 你的Java知识有多深?
- asp.net后台提示上下文中无此名称的错误
- 深入理解JavaScript系列(29):设计模式之装饰者模式