Ver Mensaje Individual
  #2  
Antiguo 16-07-2005
jlibaval jlibaval is offline
Registrado
 
Registrado: may 2005
Ubicación: Los Mochis
Posts: 2
Reputación: 0
jlibaval Va por buen camino
Thumbs up Declaracio de Record


type


TPACFileHeader = record
sig: array [0..2] of char;
ver: word;
width: byte;
height: byte;
spc: byte;
gpc: byte;
end;


By default, the values in a structured type are aligned on word or double-word boundaries for faster access. When you declare a structured type, you can include the reserved word packed to implement compressed data storage



el compilador lo pone en palabras dobles por eso

lo acomoda a 10 bytes





Utilizalo de la siguiente manera


TPACFileHeader = Packed record
sig: array [0..2] of char;
ver: word;
width: byte;
height: byte;
spc: byte;
gpc: byte;
end;
Responder Con Cita