Mappage des types Delphi en types C++
Remonter à Gestion des types de données et des concepts du langage Object Pascal
Voici la liste des types de données Delphi et des types de données C++ correspondants :
| Type Delphi | Plate-forme | Type C++ correspondant |
|---|---|---|
|
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) | Plates-formes 32 bits | int (C++) |
| Windows 64 bits | __int64 (C++) | |
| iOS 64 bits | long (C++) | |
| NativeUInt (Delphi) | Plates-formes 32 bits | unsigned (C++) |
| Windows 64 bits | unsigned __int64 (C++) | |
| iOS 64 bits | 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) |
non supporté dans C++ | |
|
Pointer (Delphi) |
void* (C++) | |
|
PWideChar (Delphi) |
WideChar* (C++) | |
|
PAnsiChar (Delphi) |
char* (C++) | |
|
Variant (Delphi) |
défini dans sysvari.h (C++) | |
|
OleVariant (Delphi) |
défini dans sysvari.h (C++) | |
| LongInt (Delphi) | int (C++) | |
| iOS 64 bits | long (C++) | |
| LongWord (Delphi) | unsigned (C++) | |
| iOS 64 bits | unsigned long (C++) | |
|
FixedInt (Delphi) |
int (C++) | |
|
FixedUInt (Delphi) |
unsigned int (C++) | |
|
TextFile (Delphi) |
TextFile (C++) |
- Remarque : Les plates-formes 32 bits incluent Windows 32 bits, OSX32, iOS 32 bits et Android.