C 和Delphi的資料型別對照表

2021-05-26 08:31:17 字數 3757 閱讀 5110

c++ 和delphi的資料型別對照表

c/c++ type

objectpascal type

unsigned short [int]

word

[signed] short [int]

smallint

unsigned [int]

cardinal 

[signed] int

integer

uint

longint 

word

word

dword

longint 

unsigned long

longint 

unsigned long int

longint 

[signed] long

longint

[signed] long int

longint

char

char

signed char

shortint

unsigned char

byte

char*

pchar

lpstr or pstr

pchar

lpwstr or pwstr

pwidechar 

void*

pointer

bool

bool

float

single

double

double

long double

extended

lp,np,pp,p prefix: if first = t then t becomes p else p prefix

handle

thandle

farproc

tfarproc

atom

tatom

tpoint

tpoint

trect

trect

colorref

tcolorref

ofstruct

tofstruct

debughookinfo

tdebughookinfo

bitmap

tbitmap

rgbtriple

trgbtriple

rgbquad

trgbquad

bitmapcoreheader

tbitmapcoreheader

bitmapinfoheader

tbitmapinfoheader

bitmapinfo

tbitmapinfo

bitmapcoreinfo

tbitmapcoreinfo

bitmapfileheader

tbitmapfileheader

handletable

thandletable

metarecord

tmetarecord

metaheader

tmetaheader

metafilepict

tmetafilepict

textmetric

ttextmetric

newtextmetric

tnewtextmetric

logbrush

tlogbrush

logpen

tlogpen

pattern

tpattern

paletteentry

tpaletteentry

logpalette

tlogpalette

logfont

tlogfont

enumlogfont

tenumlogfont

panose

tpanose

kerningpair

tkerningpair

outlinetextmetric

toutlinetextmetric

fixed

tfixed

mat2

tmat2

glyphmetrics

tglyphmetrics

pointfx

tpointfx

ttpolycurve

tttpolycurve

ttpolygonheader

tpolygonheader

abctabc

rasterizer_status

trasterizer_status

mousehookstruct

tmousehookstruct

cbtactivatestruct

tcbtactivatestruct

hardwarehookstruct

thardwarehookstruct

eventmsg

teventmsg

wndclass

twndclass

msgtmsg

minmaxinfo

tminmaxinfo

seginfo

tseginfo

accel

taccel

paintstruct

tpaintstruct

createstruct

tcreatestruct

cbt_createwnd

tcbt_createwnd

measureitemstruct

tmeasureitemstruct

drawitemstruct

tdrawitemstruct

deleteitemstruct

tdeleteitemstruct

compareitemstruct

tcompareitemstruct

windowpos

twindowpos

windowplacement

twindowplacement

nccalcsize_params

tnccalcsize_params

size

tsize

menuitemtemplateheader

tmenuitemtemplateheader

menuitemtemplate

tmenuitemtemplate

dcbtdcb

comstat

tcomstat

mdicreatestruct

***icreatestruct

clientcreatestruct

tclientcreatestruct

multikeyhelp

tmultikeyhelp

helpwininfo

thelpwininfo

ctlstyle

tctlstyle

ctltype

tctltype

ctlinfo

tctlinfo

ddeadvise

tddeadvise

ddedata

tddedata

ddepoke

tddepoke

ddeaack

tddeack

devmode

tdevmode

kanjistruct

tkanjistruct

Delphi 和 C C 資料型別對照

delphi 資料型別 c c shorint 8位有符號整數 char byte 8位無符號整數 byte,unsigned short smallint 16位有符號整數 short word 16位無符號整數 unsigned short integer,longint 32位有符號整數 in...

C 與 C 資料型別對照

簡訊貓問題 公司有個同事在做簡訊貓接收功能的時候老是接收不到,不知道是為什麼,使用的接收型別是stringbuilder,最後才知道只要給stringbuilder加大空間就沒這個問題了,也不知道是為什麼?uchar string intptr unsigned char marshalas unm...

SQLServer MySql資料型別對照表

型別 sqlserver mysql 數值範圍 描述數值範圍 描述char 0 8000個字元 定長字串 0 255個字元 定長字串 nchar 0 4,000個字元 定長unicode字串 varchar 0 8000個字元 變長字串 0 255個字元 變長字串 nvarchar 0 4,000個...