Delphi 型と C++ 型のマッピング

提供: RAD Studio
移動先: 案内検索

Delphi データ型および言語概念のサポート への移動


Delphi データ型とそれに対応する C++ データ型の一覧を以下に示します。

Delphi での型 プラットフォーム 対応する C++ での型

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 ビット プラットフォーム int(C++)
64 ビット Windows __int64(C++)
64 ビット iOS long(C++)
NativeUInt(Delphi) 32 ビット プラットフォーム unsigned(C++)
64 ビット Windows unsigned __int64(C++)
64 ビット 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)

C++ では未対応

Pointer(Delphi)

void*(C++)

PWideChar(Delphi)

WideChar*(C++)

PAnsiChar(Delphi)

char*(C++)

Variant(Delphi)

sysvari.h で定義(C++)

OleVariant(Delphi)

sysvari.h で定義(C++)

LongInt(Delphi) int(C++)
64 ビット iOS long(C++)
LongWord(Delphi) unsigned(C++)
64 ビット iOS unsigned long(C++)

FixedInt(Delphi)

int(C++)

FixedUInt(Delphi)

unsigned int(C++)

TextFile(Delphi)

TextFile(C++)


メモ: 32 ビット プラットフォームには、32 ビット Windows、OSX32、32 ビット iOS、Android が含まれます。

関連項目