joar, ist wohl 'nen knuffier Fehler im Delphi/C++-Compiler,

welchen es im D7 nicht mehr gibt (hatte extra D7 genommen, um sowas möglichst zu vermeiden

)
versuch es mal so:
Delphi-Quellcode:
Function GetLine(Idx: Integer; Var Line: AnsiString): Boolean;
Var W: Cardinal;
i64: LARGE_INTEGER;
Begin
Result := False;
i64.QuadPart := FileIndex[Idx].Offset;
i64.LowPart := SetFilePointer(SourceFile, i64.LowPart, @i64.HighPart, FILE_BEGIN);
If i64.QuadPart <> FileIndex[Idx].Offset Then Exit;
SetLength(Line, FileIndex[Idx].Size);
If (FileIndex[Idx].Size > 0) and (not ReadFile(SourceFile, Line[1], FileIndex[Idx].Size, W, nil)
or (Integer(W) <> FileIndex[Idx].Size)) Then Exit;
Result := True;
End;
Ein Therapeut entspricht 1024 Gigapeut.