Mail Archives: djgpp/1997/09/05/07:33:09
Okay, in case anyone is interested, I think I found a solution. What
I was doing with a database object's load function was passing in a
streampos (initially zero) and as data was read in I used gcount() to
count the bytes. I then totalled these bytes and returned them. This
number was passed into the function for the next seekg(). Everything
seemed to work fine with this except that seekg simply didn't like it!
It seems to work if instead of counting up the bytes with gcount you
simply tellg() at the end and return that value (for the next seekg).
I don't know why I didn't do this in the first place!
--
_____ ___ ___ ___ ___ ______ __
/ | / || || |/ / | __| mjara AT eng DOT utah DOT edu \ \
/ |/ || || / | _] http://www.cs.utah.edu/~mjara \ \
/ /| || || \ | |____________________________________\ \
/___/ |____/ __||___||___|\___\|___________________________________________\
- Raw text -