Need help for developing an application
Here is the overview of the application I am trying to develop:
Platform: Windows XP, Visual C++ 6
Application type: MFC
Features: Read a file sector by sector ( 2048 bytes) and display it in a tree view.
Here are the problems I am facing:
1. If I try to read a file which size is bigger than 1 GB, the program uses 100% of the CPU memory and then crashes
2. When the program is reading a file, I want to display a Progress Bar in a new dialog. Using CDialog->DoModal, the dialog does pop up, but the progress bar doesnt work.
Possible problem: When reading a file, I use a loop. Maybe the program stays in that loop too long leading it to crash.
Any ideas, how I should make this work.
First I want to keep the loop for reading a file, makes the program exit the loop anytimes a window message comes, and then resume the loop.
Thanks in advance!