Click here to Skip to main content
11,576,963 members (57,331 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: MFC VC++
I am developing a VC++ MFC application which have one progress bar control and I am reding a file within for loop on click of a button and I put the progress bar control code setpos in the for loop and its working but don't need this particular time interval/after particular suppose 25 bytes progress bar should be incremented so how to do this please help..
Posted 24-Mar-13 9:54am
ThePhantomUpvoter at 24-Mar-13 16:26pm
I do not see any time interval, progress bar or file processing in any of the code that you posted that demonstrates your problem. After reading your non-question, I am not even sure what your problem even is.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If you need to show the progress of the reading operation (I'm not sure I got you) then you have to know, in advance, the size of the file and then increment properly the progress bar.
For instance, if the file is 1000 bytes long then, every 10 bytes read you should increment the progress bar position of one unit.
Maciej Los at 24-Mar-13 16:32pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 221
1 DamithSL 155
2 OriginalGriff 155
3 Abhinav S 130
4 Afzaal Ahmad Zeeshan 95
0 OriginalGriff 820
1 Sergey Alexandrovich Kryukov 631
2 Abhinav S 528
3 F-ES Sitecore 420
4 Suvendu Shekhar Giri 365

Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 24 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100