procedure TForm1.Button10Click(Sender: TObject);
var TempValue :array of byte;
dataHeader: TransHeader;
ymjkey
char;
begin
opendialog1.Execute;
ssoufilestream := TFileStream.Create(opendialog1.FileName,fmOpenRead);
ssoufilestream.Seek(0,soFromBeginning);
setlength(TempValue,ssoufilestream.Size);
ssoufilestream.Read(TempValue[0],ssoufilestream.Size);
CopyMemory(@dataHeader, @tempvalue[0], 48);
//move(dataheader,tempvalue[0],sizeof(dataHeader));
copymemory(ymjkey,@tempvalue[48],dataheader.symmetrykeyLen);
//memo1.Text := ymjkey;
//showmessage(inttostr(dataheader.symmetrykeyLen));
ssoufilestream.Free;
end;
又出错了.不能这么读吗?