TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Peter Garner
date: 1995-11-22 22:10:00
subject: Idiot Question

Ok Here is an Idiot question!


  I would like a directory recurser class.  I will be using IBM C++ and have al
 of their class libraries available.  I am curious as to how one recurses direc
ories in OS/2.  The class might look something like this:


class DirRecurser
{
public :
  DirRecurser 
    (
    const IString & cristrFile ,  // ASCIIZ File Wild Cards, e.g.
"*.CPP" or "*
*"
                                        //  or "*.HPP", etc.
    Booleand       bRecurse    // true means recurse directories, false means
    ) ;                                 // only list matching files in current 
irectory!

  IString getFirst () ;            // Return FIRST file matching the specificat
on
  IString getNext () ;            // Return NEXT file matching the specificatio

                                        // Returns IString ( "" )
on no more fi
es
} /* class DirRecurser */

I know that I want to use DosFindFirst and DosFindNext.  But if I
remember an OLD thread in this conference there are some GOTCHAS to
those guys!  Anyone care to comment?


Thanks

Peter

 * KWQ/2 1.2e * No Special Reason, Just Government Policy

--- WILDMAIL!/WC v4.12 
* Origin: GREATER CHICAGO Online!! 708-895-4042 (1:115/895.0)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809
@PATH: 115/895 109/347 716 13/25 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.