TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Johan Siegers
from: Rob Landley
date: 1995-02-12 23:33:18
subject: Directory Access.

>  GB> I'm a DOS Programmer.  Is it ok to use FileFind and FileNext in a C++
>  GB> Class under an OS/2 3.0 (Warp) DOS Windows?
> 
> Sure, just don't put it in a .DLL, because I don't think FindNext is
> reentrant.

I don't see why not.  You pass a structure to FindNext, and part of that
structure contains the track, sector, and entry number of the last entry
you found.  (I should know.  I hacked into it once because I wanted a
findnext function that could give me the Nth entry in the directory with
just one call. I think it was bytes 21 and 22 which formed the int
containing which one to look at next, but don't quote me.  That was years
ago.)

Rob
 
--- Xblat
* Origin: The Conversation Pit. Marlton, NJ. 609-985-7553 V32bis (1:266/30)
SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430
SEEN-BY: 711/807 808 809 934 942 949 955 712/515 713/888 800/1 7877/2809
@PATH: 266/30 40 100 505 3615/50 229/2 12/2442 711/409 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™.