求帮助
delphi吧
全部回复
仅看楼主
level 1
月月一帆 楼主
type
ttTIME = record
dwYear: LongInt;
dwMonth: LongInt;
dwDay: LongInt;
dwHour: LongInt;
dwMinute: LongInt;
dwSecond: LongInt;
end {ttTIME};
这个在 delphi 中 怎么样表达 sizeof(ttTIME)
[泪]
2015年10月30日 00点10分 1
level 6
instancesize
2015年10月30日 01点10分 2
又不是class,record要用Sizeof()
2015年10月30日 01点10分
@顶之座__赫卡特 sizeof 返回的不是指针长度吗??
2015年10月30日 01点10分
@yubiaohyb Sizeof返回的是数据类型的大小,对于class这种引用类型,要看对象大小才是用instancesize,你不信就看看record有没这么个方法,还有像Double, Integer,NativeInt这些的大小,你觉得会用哪个?
2015年10月30日 01点10分
sizeof(ttTIME) 在delphi 中,直接用instancesize??好像不行
2015年10月30日 02点10分
1