T
tanxj
Unregistered / Unconfirmed
GUEST, unregistred user!
请各位大哥帮我看看这个代码,怎么会出错?
var
F ,Fw: File;
IStream : TStream;
OStream : TStream;
fsize : int64;
TempBuf : Array of byte;
begin
Istream := TStream.Create;//(FileName,fmOpenRead);//TStream.Create;
OStream := TStream.Create;//(MyPath + '/MP3/'+ 'Temp.swf',fmCreate);
FileMode:=fmOpenRead;
AssignFile(f,'temp.avi');
Reset(f,1);
fsize := Filesize(f);
SetLength(TempBuf,fsize);
BlockRead(f,TempBuf[0],fsize);
//将文件读入内存
CloseFile(f);
IStream.WriteBuffer(TempBuf[0],fsize);
showmessage('写了');
end;
老是提示Abstract error;
var
F ,Fw: File;
IStream : TStream;
OStream : TStream;
fsize : int64;
TempBuf : Array of byte;
begin
Istream := TStream.Create;//(FileName,fmOpenRead);//TStream.Create;
OStream := TStream.Create;//(MyPath + '/MP3/'+ 'Temp.swf',fmCreate);
FileMode:=fmOpenRead;
AssignFile(f,'temp.avi');
Reset(f,1);
fsize := Filesize(f);
SetLength(TempBuf,fsize);
BlockRead(f,TempBuf[0],fsize);
//将文件读入内存
CloseFile(f);
IStream.WriteBuffer(TempBuf[0],fsize);
showmessage('写了');
end;
老是提示Abstract error;