C++ 输入输出 C# ==================================char chr[255] O StringBuilderKCA_DIR I intLPCSTR I stringint I intLPSTR O StringBuilderint* O out intDWORD I intDWORD* O out intBOOL I boolRc_DBMgr I IntPtrlong* 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
INT
int
System.Int32
UINT
unsigned int
System.UInt32
LONG
long
BOOL
DWORD
unsigned long
ULONG
CHAR
char
System.Char
用 ANSI 修饰。
LPSTR
char*
System.String 或System.StringBuilder
LPCSTR
Const char*
LPWSTR
wchar_t*
用 Unicode 修饰。
LPCWSTR
Const wchar_t*
FLOAT
Float
System.Single
DOUBLE
Double
System.Double
64 位