äquivalente Datentypen für C++ C#

C/C++             C#

int, long         int
int*              ref int
UINT              uint, UInt32
unsigned short    ushort, UInt16
short int         short, Int16
long long         long

BYTE              byte
DWORD             int

char*             [MarshalAs(UnmanagedType.LPStr)] ref string
TStruct*          ref TStruct
HWND, HMODULE     IntPtr

Schreibe einen Kommentar