Mail Archives: djgpp/1998/11/16/03:42:53
On Mon, 16 Nov 1998, Sam. wrote:
> I've written a program that so far just loops through a directory and
> outputs the names of files fitting the specifier, using findfirst()
> and findnext(). This is under Windows 95. If I set LFN=y, I only get
> the first filename (ie, findnext() doesn't work), if I set LFN=n I get
> all the filenames, but the short versions. Is there something I should
> be aware of?
This is most probably some bug in the way you use findfirst/findnext.
They both work in LFN and non-LFN mode alike. If you want to convince
yourself, try using opendir and readdir, they call findfirst and
findnext internally.
If you cannot figure this out, post a short program which exhibits the
problem on your machine, and somebody will find the cause.
- Raw text -