Zuordnung der Delphi-Typen zu C++-Typen
Nach oben zu Unterstützung für Object Pascal-Datentypen und Sprachkonzepte
Im Folgenden finden Sie eine Liste der Delphi-Datentypen und der entsprechenden C++-Datentypen:
Delphi-Typ | Plattform | Entsprechender C++-Typ |
---|---|---|
Boolean (Delphi) |
bool (C++) | |
ShortInt (Delphi) |
ShortInt, signed char (C++) | |
SmallInt (Delphi) |
short (C++) | |
Integer (Delphi) |
int (C++) | |
Byte (Delphi) |
Byte (C++) | |
Word (Delphi) |
Word (C++) | |
Cardinal (Delphi) |
unsigned (C++) | |
Int64 (Delphi) |
__int64 (C++) | |
UInt64 (Delphi) |
unsigned __int64 (C++) | |
NativeInt (Delphi) | 32-Bit-Plattformen | int (C++) |
64-Bit-Windows | __int64 (C++) | |
64-Bit-iOS | long (C++) | |
NativeUInt (Delphi) | 32-Bit-Plattformen | unsigned (C++) |
64-Bit-Windows | unsigned __int64 (C++) | |
64-Bit-iOS | unsigned long (C++) | |
Single (Delphi) |
float (C++) | |
Double (Delphi) |
double (C++) | |
Extended (Delphi) |
Extended (C++) | |
Currency (Delphi) |
Currency, CurrencyBase (C++) | |
Comp (Delphi) |
Comp, CompBase (C++) | |
Real (Delphi) |
double (C++) | |
ShortString (Delphi) |
ShortString, ShortStringBase (C++) | |
OpenString (Delphi) |
OpenString (C++) | |
File (Delphi) |
file (C++) | |
Text (Delphi) |
TextFile (C++) | |
ByteBool (Delphi) |
ByteBool (C++) | |
WordBool (Delphi) |
WordBool (C++) | |
LongBool (Delphi) |
BOOL (C++) | |
Real48 (Delphi) |
in C++ nicht unterstützt | |
Pointer (Delphi) |
void* (C++) | |
PWideChar (Delphi) |
WideChar* (C++) | |
PAnsiChar (Delphi) |
char* (C++) | |
Variant (Delphi) |
definiert in sysvari.h (C++) | |
OleVariant (Delphi) |
definiert in sysvari.h (C++) | |
LongInt (Delphi) | int (C++) | |
64-Bit-iOS | long (C++) | |
LongWord (Delphi) | unsigned (C++) | |
64-Bit-iOS | unsigned long (C++) | |
FixedInt (Delphi) |
int (C++) | |
FixedUInt (Delphi) |
unsigned int (C++) | |
TextFile (Delphi) |
TextFile (C++) |
- Hinweis:
Zu 32-Bit-Plattformen zählen 32-Bit-Windows, OSX32, 32-Bit-iOS und Android.