一般而言,C/C++与C#之间的数据类型对应如下:
C/C++ C#
int int
unsigned int uint
short short
unsigned short ushort
char sbyte或者char
bool(属于C++) bool
long long
unsigned long ulong
string(属于C++) string
——————(WIndows API类型对应)
DWORD、HANDLE、HDC、HWM、HPARAN、WPARAM、LPARAM、LPSTR、LPCSTR int
WORD ushort
DWORDLONG long
BOOL bool
………………