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 [perfectly divisible by 100h]
....... code
Loop:
; Work will be done here
add CurrentWork,100h [ each round 100h work is done]
mov eax,CurrentWork
mov ecx,64h
cdq
imul ecx
mov ecx,TotalWork
cdq
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
starz