Date: Mon, 20 Dec 1999 10:09:45 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Richard Sanders cc: djgpp AT delorie DOT com Subject: Re: LFN problem In-Reply-To: <385d4f4b_1@news.vphos.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 19 Dec 1999, Richard Sanders wrote: > I am having a problem with findfirst/findnext and LFN. I am getting > 8.3 names. _USE_LFN returns 0. Are you perhaps running this program in the so-called ``DOS Mode''? In other words, is Windows GUI still active when you run the program? In DOS Mode, you won't have LFN support, because it is part of Windows and isn't loaded in DOS Mode. The solution is to run your program from the Windows' DOS box. > What is realy puzzling me is that I recompiled and old program that > also uses findfirst/findnext and *does* return LFN. It is possible that the problematic program has the DOS Mode forced in its properties, while the other program does not. Another possibility is that the program which loses LFN is run from within another program, and that other program disables LFN somehow. If none of the above helps, please post a detailed description of the differences between the way you run these two programs.