www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/17/04:30:05

Date: Thu, 17 Sep 1998 11:29:55 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Doug Gale <dgale AT mailexcite DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: LFNS: A newbie like question.
In-Reply-To: <3600B149.E9C8C9B7@mailexcite.com>
Message-ID: <Pine.SUN.3.91.980917112207.10789E-100000@is>
MIME-Version: 1.0

On Thu, 17 Sep 1998, Doug Gale wrote:

> Maybe load an environment file with that in it or something? I don't 
> really want users to have to mess with their autoexec.

If an application absolutely needs to force use of long file names, it 
could just push LFN=y into the environment at run time:

	int main (int argc, char **argv)
	{
	....
	putenv ("LFN=y");

That's all!

But most people who work on Windows 9X will have LFN enabled one way or 
the other, anyway.  Those who don't have DJGPP installed, will have it by
default; those who do have DJGPP, will enable it on AUTOEXEC.BAT, since 
otherwise the compiler will complain about streambuf.h and such likes.

However, please note that some users could disable LFN on purpose, e.g. 
if they wanted to see how does the program work with short file names on 
Windows 9X.  

For these reasons, I think it's not a good idea to force use of LFN in 
your programs.  Let the users have their way, if they are desperate 
enough to disable LFNs.

- Raw text -


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