Mappage des types Delphi en types C++
Remonter à Gestion des types de données et des concepts du langage Delphi
Voici la liste des types de données Delphi et des types de données C++ correspondants :
Type Delphi | défini dans sysmac.h | Plate-forme | Type C++ correspondant |
---|---|---|---|
System::Boolean |
bool | ||
System::Int8 |
signed char | ||
System::SmallInt |
short | ||
System::Integer |
int | ||
System::Int64 |
__int64 | ||
System::Byte |
unsigned char | ||
System::Word |
unsigned short | ||
System::Cardinal |
unsigned | ||
System::UInt64 |
unsigned __int64 (unsigned long long) | ||
NativeInt | System::NativeInt | Plates-formes 32 bits | int |
Plates-formes 64 bits | __int64 | ||
NativeUInt | System::NativeUInt | Plates-formes 32 bits | unsigned int |
Plates-formes 64 bits | unsigned __int64 | ||
LongInt |
System::Longint |
Plates-formes Windows 32 bits et 64 bits |
int |
Plates-formes POSIX 64 bits | long | ||
LongWord | Plates-formes Windows 32 bits et 64 bits |
unsigned | |
Plates-formes POSIX 64 bits | unsigned long | ||
int | |||
unsigned int | |||
System::Single |
float | ||
System::Double |
double | ||
System::Extended |
long double | ||
System::Currency, System::CurrencyBase |
|||
System::Comp, System::CompBase |
|||
double Remarque: Le mappage suppose {$REALCOMPATIBILITY OFF} | |||
System::ShortString, System::ShortStringBase |
|||
System::OpenString |
char* const | ||
String | System::UnicodeString | ||
WideString | System::WideString | ||
AnsiChar | char | ||
Char | System::WideChar | Plates-formes Windows | wchar_t |
Plates-formes POSIX | char16_t | ||
WideChar | System::WideChar | Plates-formes Windows | wchar_t |
Plates-formes POSIX | char16_t | ||
System::file |
|||
System::TextFile |
|||
System::ByteBool |
unsigned char | ||
System::WordBool |
unsigned short | ||
System::LongBool |
int | ||
non supporté dans C++ | |||
void* | |||
System::WideChar* |
Plates-formes Windows | wchar_t* | |
Plates-formes POSIX | char16_t* | ||
char* | |||
System::Variant défini dans sysvari.h |
|||
System::OleVariant Défini dans sysvari.h |
- Remarque: Les plates-formes 32 bits incluent Windows 32 bits, macOS 32 bits, iOS 32 bits et Android.
Les plates-formes POSIX incluent macOS, iOS, le simulateur iOS, Android et Linux.