I have been trying to use a Progress Bar Indicating total work done, it seems to be working fine for files below 20Mb but Resets when Files are bigger :(

initially CurrentWork = 0
          TotalWork = xx

....... code
                ; Work will be done here
                add CurrentWork,100h [ each round 100h work is done]
mov eax,CurrentWork
mov ecx,64h
imul ecx
mov ecx,TotalWork
idiv ecx
mov statPosition,eax
invoke ProgressB,hWnd

                cmp yy,0h
                jne Loop

i cant seem to get what goes wrong ... any help will be appreciated

Posted on 2007-07-07 02:41:08 by starzboy