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