delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/12/09:45:33

Xref: news2.mv.net comp.os.msdos.djgpp:5914
From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problems with findfirst / findnext
Date: Fri, 12 Jul 1996 12:39:39 GMT
Lines: 35
Message-ID: <837175093.12151.3@abwillms.demon.co.uk>
References: <wgalazka DOT 12 DOT 837007828 AT zoolook DOT chem DOT uw DOT edu DOT pl>
NNTP-Posting-Host: abwillms.demon.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

wgalazka AT zoolook DOT chem DOT uw DOT edu DOT pl (Wojciech Galazka) wrote:


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

You bet :-)

There's a problem with the current gcc; in c++ mode, it never packs
structs. Find the definition of struct ffblk in dir.d and surround it
with:

#pragma pack(1)

struct ffblk ...

#pragma pack()

That'll force it to pack them properly.

Regards,


ABW

--
I have become... Comfortably numb...

Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk
<A HREF="http://www.hardcafe.co.uk/Alaric/">http://www.hardcafe.co.uk/Alaric/</A>

- Raw text -


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