Mail Archives: djgpp/2004/09/11/16:30:21
On Sat, 11 Sep 2004 11:00:20 -0700 (PDT) in comp.os.msdos.djgpp,
William OConnell <william_peter_oconnell AT yahoo DOT com> wrote:
>Hello,
>
>I sent a mail message about an attempt to save a file
>using the "fopen" statement in Rhide \ C++ on Windows
>98. The LFN switch was set with the -y switch.
>
>When the program runs under Rhide, there is no
>problem, the file is created under the correct name,
>even if the name is longer than eight characters. But
>when the compiled EXE program runs by itself, the same
>attempt cuts off the end of the filename and only
>includes the first eight characters. Why does this
>happen? How do I fix this?
You need to set LFN=y in djgpp.env file in your install directory:
editor %DJGPP% or editor $DJGPP depending on your shell and editor;
search for LFN=, change to +LFN=y, save, exit;
test the program again with a long file name.
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply
- Raw text -