delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/11/11:58:42

From: kagel AT quasar DOT bloomberg DOT com
Date: Thu, 11 Jul 1996 11:51:07 -0400
Message-Id: <9607111551.AA13279@quasar.bloomberg.com >
To: wgalazka AT zoolook DOT chem DOT uw DOT edu DOT pl
Cc: djgpp AT delorie DOT com
In-Reply-To: <wgalazka.12.837007828@zoolook.chem.uw.edu.pl>
Subject: Re: Problems with findfirst / findnext
Reply-To: kagel AT dg1 DOT bloomberg DOT com

   Errors-To: postmaster AT ns1
   Xref: news2.mv.net comp.os.msdos.djgpp:5857
   From: wgalazka AT zoolook DOT chem DOT uw DOT edu DOT pl (Wojciech Galazka)
   Newsgroups: comp.os.msdos.djgpp
   Date: Wed, 10 Jul 1996 14:10:28 GMT
   Organization: University of Warsaw, Department of Chemistry
   Lines: 9
   Distribution: world
   Nntp-Posting-Host: andrew.chem.uw.edu.pl
   Summary: finfirst problems
   Keywords: finfirst
   Dj-Gateway: from newsgroup comp.os.msdos.djgpp
   Content-Type: text
   Content-Length: 233


     Hi,
     I'm still having problems with finfirst / findnext functions.
     The file names in ffblk.ff_name are broken. Two first letters
     are eaten  ( OMMAND.COM instead of COMMAND.COM).

    Has anybody experienced this before ? 

Is this is C++?  findfirst/findnext is broken in C++ due to the structure
packing bug in gcc.  Try wrapping findfirst/findnext in C functions and call
these from C++ declaring them as "C" in the C++ module.  That should solve the
problem.

-- 
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com

A proverb is no proverb to you 'till life has illustrated it.  -- John Keats

- Raw text -


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