L
lhcming
Unregistered / Unconfirmed
GUEST, unregistred user!
type
TBytes = array of byte;
tDept = Record
id:integer;
Name: array [0..40] of byte
end;
tPerson = Record
id: integer;
name: Array [0..8] of byte;
dept: tDept;
end;
pPerson = ^tPerson;
------------------------------------------------------------
//注:AData已经被赋值。
____________________________________________________________
procedure A(AData:TBytes);
var
person: pPerson;
begin
new(Person);
//注明: AData: Array of Byte
copyMemory(@person,@Adata,Sizeof(Adata));
dispose(Person)
//报错在这里????
end;
有哪位大侠知道原因吗? 应该如何做呢?
TBytes = array of byte;
tDept = Record
id:integer;
Name: array [0..40] of byte
end;
tPerson = Record
id: integer;
name: Array [0..8] of byte;
dept: tDept;
end;
pPerson = ^tPerson;
------------------------------------------------------------
//注:AData已经被赋值。
____________________________________________________________
procedure A(AData:TBytes);
var
person: pPerson;
begin
new(Person);
//注明: AData: Array of Byte
copyMemory(@person,@Adata,Sizeof(Adata));
dispose(Person)
//报错在这里????
end;
有哪位大侠知道原因吗? 应该如何做呢?