I have written a program which includes the use of a progress bar representing the growing size of a file created by another program (which I have not written) called via CreateProcess().
Within my program I have created a loop that exists for the duration of the CreateProcess thread in which I repeatedly check the size of the file produced, using CreateFile() and GetFileSize() and use that to update the progress bar.
This works perfectly with OS W2K but fails with ME as follows:
If I check the building of the file using Explorer with F5 as a refresh, the file is not updated until the file is fully created. If I right click and check Properties repeatedly I can see the increase in file size. I assume from this that there is a way of checking the file growth, by some method in my program, but do not know how.
Any suggestions please?
Within my program I have created a loop that exists for the duration of the CreateProcess thread in which I repeatedly check the size of the file produced, using CreateFile() and GetFileSize() and use that to update the progress bar.
This works perfectly with OS W2K but fails with ME as follows:
If I check the building of the file using Explorer with F5 as a refresh, the file is not updated until the file is fully created. If I right click and check Properties repeatedly I can see the increase in file size. I assume from this that there is a way of checking the file growth, by some method in my program, but do not know how.
Any suggestions please?