Mail Archives: djgpp/1998/09/17/04:30:05
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 -