🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4094

FindFirst Open File Error

#4094
From: Orlando Lopez
Date: Tue, 14 Mar 2006 17:30
30 lines
1644 bytes
Hi to all,

I have the following code:
//... some stuff
    if (FindFirst(this->wpath + "\\" + this->filefilter, iAttributes, sr) == 0)

    {
      do
      {
        if ((sr.Attr & iAttributes) == sr.Attr)
        {

          if (this->DebugLevel >= debug_level)
              ODebug_(this->LogName,
                      this->GetTimeStamp()+" [File Found] " + sr.Name);
          files->Add(sr.Name);
          TStream *file = new TFileStream(this->AppPath + sr.Name, fmOpenRead); // << I;m getting Open File error
          //this->InsertFile(sr.Name);
          //this->FileMove(sr.Name);
        }
      } while (FindNext(sr) == 0);
      FindClose(sr);
    }

While I'm getting a file open error when I try to open the file
using TFileStream?
FindFirst open the file?

Thanks in advance
Technical Details
Message-ID: <44170bbb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,dfd9baf79c8d00b4,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Orlando Lopez" <hlopezrd@hotmail.com>
Sender: "Orlando Lopez" <hlopezrd@hotmail.com>
Reply-To: "Orlando Lopez" <hlopezrd@hotmail.com>
Subject: FindFirst Open File Error
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 200.88.202.229     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <44170bbb$1@newsgroups.borland.com>
Date: 14 Mar 2006 10:30:19 -0700
X-Trace: newsgroups.borland.com 1142361019 207.105.83.66 (14 Mar 2006 10:30:19 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail