delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/09/11/14:01:30

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <20040911180020.88608.qmail@web60710.mail.yahoo.com>
Date: Sat, 11 Sep 2004 11:00:20 -0700 (PDT)
From: William OConnell <william_peter_oconnell AT yahoo DOT com>
Subject: Fwd: Re: Long filenames / fopen / exe program / Windows 98
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

--0-1663971931-1094925620=:87914
Content-Type: text/plain; charset=us-ascii
Content-Id: 
Content-Disposition: inline

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?

Thanks,
Bill O'Connell
E-mail, "william_peter_oconnell AT yahoo DOT com"
Note: forwarded message attached.



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
--0-1663971931-1094925620=:87914
Content-Type: message/rfc822

X-Apparently-To: william_peter_oconnell AT yahoo DOT com via 216.109.117.231; Fri, 10 Sep 2004 12:41:38 -0700
X-Originating-IP: [207.22.48.162]
Return-Path: <lnobody AT delorie DOT com>
Received: from 207.22.48.162  (EHLO delorie.com) (207.22.48.162)
  by mta157.mail.sc5.yahoo.com with SMTP; Fri, 10 Sep 2004 12:41:34 -0700
Received: (from mail AT localhost)
	by delorie.com (8.12.8/8.12.8) id i8AJQQKa001129
	for djgpp-list; Fri, 10 Sep 2004 15:26:26 -0400
X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Received: from legolas.inter.net.il (root AT localhost)
	by delorie.com (8.12.8/8.12.8) with SMTP id i8AJQKvP001072
	for <djgpp AT delorie DOT com>; Fri, 10 Sep 2004 15:26:23 -0400
Received: from legolas.inter.net.il (legolas.inter.net.il [192.114.186.24])
	by delorie.com (antispam)
Received: from zaretski ([80.230.157.187])
	by legolas.inter.net.il (MOS 3.5.3-GR)
	with ESMTP id CNJ10518 (AUTH halo1);
	Fri, 10 Sep 2004 22:26:19 +0300 (IDT)
Date: Fri, 10 Sep 2004 22:25:04 +0300
From: "Eli Zaretskii" <eliz AT gnu DOT org>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Content-Transfer-Encoding: 7BIT
Content-Type: text/plain; charset=ISO-8859-1
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2
In-reply-to: <20040910165058 DOT 41127 DOT qmail AT web60707 DOT mail DOT yahoo DOT com> (message
	from William OConnell on Fri, 10 Sep 2004 09:50:58 -0700 (PDT))
Subject: Re: Long filenames / fopen / exe program / Windows 98
References:  <20040910165058 DOT 41127 DOT qmail AT web60707 DOT mail DOT yahoo DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com
Precedence: bulk
Content-Length: 545

> Date: Fri, 10 Sep 2004 09:50:58 -0700 (PDT)
> From: William OConnell <william_peter_oconnell AT yahoo DOT com>
> 
> I wrote a program in C++ using djgpp / Rhide.  This
> program uses the "fopen" statement to open a file for
> writing.  I supplied a long filename,
> "Field-Definition.txt".  This program worked fine when
> it ran under the Rhide program.  But when the compiled
> EXE program ran by itself, the filename was cut short
> to eight characters.  Is this a bug?  Why does this
> happen?  

Set LFN=y in the environment and then try again.

--0-1663971931-1094925620=:87914--

- Raw text -


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