TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: AL MCLEAN
date: 1997-10-31 21:44:00
subject: TClite and TC++Win

Hi All,
Can some kind soul enlighten me on why the following code fragment compiles
perfectly under TCLite (for dos) but generates an error under TC++ for
Windows v3.1?
ifstream filestream(FinalFileName);
filestream.seekg(-360L, SEEK_END);
        while (!filestream.eof())
Compiling LOGDOS.CPP:
Error LOGDOS.CPP 49: Could not find a match for 'istream::seekg(long,int)'
What I am trying to do is to read the last 360 bytes from a file, it works
well under the DOS flavoured version, too.
Cheers 
Al McLean
--- Terminate 5.00/Pro 
---------------
* Origin: Electric Pigeon, Telford. almcl@pigeon.coracle.com (2:2500/509.3)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.