rejetto forum

Error compiling HFS 2.2 #106

0 Members and 1 Guest are viewing this topic.

Offline Flynsarmy

  • Occasional poster
  • *
    • Posts: 92
  • DENIED!
    • View Profile
    • Flynsarmy
Hi, i'm trying to compile HFS 2.2 #106 on Delphi 7 PE. I've got an error in classesLib.pas (which doesn't appear on google)
that says:
Error: Undefined identifier 'FileName'. The error occurs on this here:
Code: [Select]
function TtarStream.fsInit():boolean;
begin
if assigned(fs) and (fs.FileName = flist[cur].src) then
I had an error in HSLib earlier about SD_BOTH and i just defined it to be 2 within hslib.pas. Would these errors
be related? I can't figure this one out myself due to there being nothing on classeslib on google :S


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13309
    • View Profile
fs is a TFileStream
filename is a property of the TFileStream class
TFileStream is part of the delphi lib
so the only thing i can say, it is that maybe your older version of Delphi has no such thing property, and can't do nothing about it.
you may consider upgrading, though delphi 2006 is much bigger then delphi 7.

i remember SD_BOTH being not present in older versions of ICS lib. if you have problems with it, i can give you my exact version (the one reported in notes.txt).

the problems are not related.