Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Reply-To: From: "Kris Thielemans" To: "Martin Trautmann" , Subject: RE: B20: tellg changes file position (Win95,?) Date: Mon, 13 Mar 2000 04:10:37 -0000 Message-ID: <00c401bf8ca2$16118220$1d4bb392@petnt1.rpms.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 Importance: Normal In-Reply-To: <38CBC857.90D5CB23@gmx.de> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 Hi, I had a similar problem recently (could even have been in VC). My problem was that I was using tellg() on a stream which was NOT opened with ios::binary, while containing binary data. Presumably it is an ill-defined procedure in that case. Maybe the same is true for you... Kris > -----Original Message----- > From: cygwin-owner AT sourceware DOT cygnus DOT com > [mailto:cygwin-owner AT sourceware DOT cygnus DOT com]On Behalf Of Martin Trautmann > Sent: 12 March 2000 16:40 > To: cygwin AT sourceware DOT cygnus DOT com > Subject: B20: tellg changes file position (Win95,?) > > > Hello, > > I am developing a program with egcs-2.91.66 (linux) and want to compile > a version for Windows. I didn't have any problems to compile it but it > had some strange results. > Finally I found out that the function "ifstream.tellg()" changes the > file position and > had some other strange results on later read functions that got words > like "near" that absolutely have not been in the file. > > I am sorry that I have no small example but the whole program will be > availible soon under: > http://www.theofel.de/anitmt/ > > thank you for help > > Martin Trautmann > > The only interesting thing in the output of cygcheck I found was: > > 371k 1998/12/01 .\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 > "cygtcl80.dll" v0.0 ts=1998/12/1 9:25 > 5k 1998/12/01 .\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 > 10k 1998/12/01 .\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 > "cygtclreg80.dll" v0.0 ts=1998/12/1 9:25 > 600k 1998/12/01 .\cygtk80.dll - os=4.0 img=1.0 sys=4.0 > "cygtk80.dll" v0.0 ts=1998/12/1 9:28 > 446k 1998/12/03 .\cygwin1.dll - os=4.0 img=1.0 sys=4.0 > "cygwin1.dll" v0.0 ts=1998/12/4 5:39 > 371k 1998/12/01 .\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 > "cygtcl80.dll" v0.0 ts=1998/12/1 9:25 > 5k 1998/12/01 .\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 > 10k 1998/12/01 .\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 > "cygtclreg80.dll" v0.0 ts=1998/12/1 9:25 > 600k 1998/12/01 .\cygtk80.dll - os=4.0 img=1.0 sys=4.0 > "cygtk80.dll" v0.0 ts=1998/12/1 9:28 > 446k 1998/12/03 .\cygwin1.dll - os=4.0 img=1.0 sys=4.0 > "cygwin1.dll" v0.0 ts=1998/12/4 5:39 > 446k 1998/12/03 c:\bat\cygwin1.dll - os=4.0 img=1.0 sys=4.0 > "cygwin1.dll" v0.0 ts=1998/12/4 5:39 > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com