News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

ProgressBar Problem

Started by starzboy, July 08, 2007, 07:21:30 AM

Previous topic - Next topic

starzboy

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