www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/19/15:20:14

From: kagel AT quasar DOT bloomberg DOT com
Date: Wed, 19 Jun 1996 15:05:32 -0400
Message-Id: <9606191905.AA03381@quasar.bloomberg.com >
To: Sierwald AT tu-harburg DOT d400 DOT de
Cc: djgpp AT delorie DOT com
In-Reply-To: <31C7E4E1.5ABB@tu-harburg.d400.de> (message from Joern Sierwald on Wed, 19 Jun 1996 13:30:41 +0200)
Subject: Re: findfirst bug?
Reply-To: kagel AT dg1 DOT bloomberg DOT com

   From: Joern Sierwald <Sierwald AT tu-harburg DOT d400 DOT de>
   Date: Wed, 19 Jun 1996 13:30:41 +0200

   The find_t struct in dos.h is supposed to be packed. It
   is full of (packed) attributes. For some strange reason, it isn't
   packed until I put an #pragma pack(1) in front of it.
   (#pragma pack() behind it).

   The findfirst/findnext functions don't work until I modify
   the headers. 

   Is this a known bug? I'm using V 2.00.

Known bug affecting C++ apps only.  The packed attributes are the problem, IMS, 
but as you discovered the #pragma works.

-- 
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