www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/20/05:03:33

Date: Mon, 20 Dec 1999 10:09:45 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Richard Sanders <richard AT stardate DOT bc DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: LFN problem
In-Reply-To: <385d4f4b_1@news.vphos.net>
Message-ID: <Pine.SUN.3.91.991220100922.6674K-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019