Zuordnung der Delphi-Typen zu C++-Typen

Aus RAD Studio
Wechseln zu: Navigation, Suche

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

System::Boolean

bool

ShortInt

System::Int8

signed char

SmallInt

System::SmallInt

short

Integer

System::Integer

int

Int64

System::Int64

__int64

Byte

System::Byte

unsigned char

Word

System::Word

unsigned short

Cardinal

System::Cardinal

unsigned

UInt64

System::UInt64

unsigned __int64
(unsigned long long)
NativeInt System::NativeInt 32-Bit-Plattformen int
64-Bit-Plattformen __int64
NativeUInt System::NativeUInt 32-Bit-Plattformen unsigned int
64-Bit-Plattformen unsigned __int64
LongInt

System::Longint

32-Bit-Plattformen
64-Bit-Windows
int
64-Bit-POSIX-Plattformen long
LongWord 32-Bit-Plattformen
64-Bit-Windows
unsigned
64-Bit-POSIX-Plattformen unsigned long

FixedInt

int

FixedUInt

unsigned int

Single

System::Single

float

Double

System::Double

double

Extended

System::Extended

long double

Currency

System::Currency, System::CurrencyBase

Comp

System::Comp, System::CompBase

Real

double
Hinweis: Die Zuordnung setzt {$REALCOMPATIBILITY OFF} voraus.

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 den 32-Bit-Plattformen gehören 32-Bit-Windows und Android.
Zu den von C unterstützten POSIX-Plattformen gehören iOS, Android und Linux.

Siehe auch