5
520zhuhaibo
Unregistered / Unconfirmed
GUEST, unregistred user!
thostname = Array[0..max_computername_length] Of Char;
_packet = Record
packetHead: word;
PacketGUID: TGUID;
packetsize: word;
rtuid: longword;
packetID: word;
HostName: thostname;
systime: TSYSTEMTime;
ParityLoword: word;
ParityHiword: word;
end;
Delphi与VC都是采用8字节对齐的方式
为何Delphi中Sizeof()取出_packet的大小与VC的不一样呢?
请赐教:字节对齐:Delphi与C/C++的异同,各自字节对齐是怎么对齐的?
问题价值是300+300+300;,请高手帮忙,急!!!
_packet = Record
packetHead: word;
PacketGUID: TGUID;
packetsize: word;
rtuid: longword;
packetID: word;
HostName: thostname;
systime: TSYSTEMTime;
ParityLoword: word;
ParityHiword: word;
end;
Delphi与VC都是采用8字节对齐的方式
为何Delphi中Sizeof()取出_packet的大小与VC的不一样呢?
请赐教:字节对齐:Delphi与C/C++的异同,各自字节对齐是怎么对齐的?
问题价值是300+300+300;,请高手帮忙,急!!!