cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/11/20:31:52

Message-Id: <199708120031.KAA05967@rabble.uow.edu.au>
Subject: Re: DJGPP bug
To: salvador AT inti DOT edu DOT ar (Salvador Eduardo Tropea)
Date: Tue, 12 Aug 1997 10:31:03 +1000 (EST)
Cc: djgpp AT delorie DOT com (DJGPP)
In-Reply-To: <m0wxoY3-000S1fC@inti.edu.ar> from Salvador Eduardo Tropea at "Aug 11, 97 10:28:25 am"
From: *** Brett *** <bporter AT rabble DOT uow DOT edu DOT au>
MIME-Version: 1.0

> > 
> > The problem line is:
> >    sDatabaseFile.open( "saledb.dat", ios::in | ios::out | ios::nocreate |
> > ios::bin );
> > 
> > 
> > static fstream sDataBaseFile;
> > 
> > What happens? In DJGPP this truncates the file. Which bums my whole program
> > out. 
> Here the fault isn't in the compiler but in the library. I saw it and is too 
> annoying.
> 

> Stop trying. Open the file with fopen (or was open?) and pass the file handler 
> to the constructor (there are a constructor for that).
> 
Any other alternatives? My lecturer for Computer Science doesn't like that...



Brett


-- 
Brett Porter
bporter AT rabble DOT uow DOT edu DOT au (preferred)	---	blp01 AT uow DOT edu DOT au

http://www.geocities.com/CollegePark/Union/3596 - Humor Page
http://www.geocities.com/SiliconValley/Park/7483 - Programming page
http://rabble.uow.edu.au/people/bporter - Mysterious page - hidden links ;)

- Raw text -


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