中国开发网: 论坛: 程序员情感CBD: 贴子 119840
haitao
整个文件是这样一个字符一个字符地加起来的?那是要死人的
应该先
L := FContentLength ;
for longIndex := 0 to FContentLength - 1 do
begin
if FContentData[ longIndex ] = 0 then //0表示内容结束
begin
L:=longIndex;
break;
end;
end;
setlength( ContentData , L );
memcopy(ContentData[1] , FContentData , L );

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录