Get the file size before you start reading, keep track of how many bytes
you've read after each ReadString and calc your percentage complete.

Adam

----- Original Message ----- 
From: "Palmer, Jean L." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 29, 2004 2:23 PM
Subject: [msvc] percent read


> Visual C++ 6.0
>
> If I have a large CStdioFile that I am reading, line by line, with
CStdioFile::ReadString, what's a quick way to know how much percent complete
I am in the read operation?  This is for a CProgressCtrl so approximate is
ok.
>
> TIA
>
> Jean Palmer
> Northrop Grumman
> > * [EMAIL PROTECTED]
> > * (410-993-2627)
> >
> >
>
> _______________________________________________
> msvc mailing list
> [EMAIL PROTECTED]
> See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.


_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to