易
易名烦
Unregistered / Unconfirmed
GUEST, unregistred user!
for i := 0 to mHis.Enumerate - 1 do
begin
mHisRec := mHis.Items;
mRec.Title := mHisRec.Title;
mRec.Url := mHisRec.Url;
mRec.SaveTime := mHisRec.Lastvisited;
mStream.Write(mRec, SizeOf(mRec));
end;
mHis.ClearList;
ss := TStringList.Create;
// mStream.Position := SizeOf(CMD_SAVe);
mStream.Position := 0;
while mStream.Position < mStream.Size do //这个循环几次后报地址错
begin
i := SizeOf(mRec);
mStream.Read(mRec, SizeOf(mRec))
//这里报错
ss.Add(mRec.Title + '&*&' + mRec.Url);
end;
ss.SaveToFile('d:/aa.txt');
begin
mHisRec := mHis.Items;
mRec.Title := mHisRec.Title;
mRec.Url := mHisRec.Url;
mRec.SaveTime := mHisRec.Lastvisited;
mStream.Write(mRec, SizeOf(mRec));
end;
mHis.ClearList;
ss := TStringList.Create;
// mStream.Position := SizeOf(CMD_SAVe);
mStream.Position := 0;
while mStream.Position < mStream.Size do //这个循环几次后报地址错
begin
i := SizeOf(mRec);
mStream.Read(mRec, SizeOf(mRec))
//这里报错
ss.Add(mRec.Title + '&*&' + mRec.Url);
end;
ss.SaveToFile('d:/aa.txt');