Quote Originally Posted by trjack52

Code:
HRESULT   hr;
LPBINDSTATUSCALLBACK lpfnCB;
Well im stuck on this one
help me now i got a progress bar and im using an update option in my program

These varibles are on the top:
Lcc-win32/Visual Basic Code:
  1. HRESULT   hr;
  2. LPBINDSTATUSCALLBACK lpfnCB;

im not sure if its correct

ModifyProgressBar(PROGRESSHANDLE,TEXTTODRAWINBAR,DISPLAY %,DISPLAY CUSTOM TEXT); is from my dll differnt style to the progress bar mind

still uses the same class just sends a pain message;

and:
Lcc-win32 Code:
  1. hr = URLDownloadToFile(0,urlname,"UPDATER.INI",1,0);
  2.                 if(hr==S_OK){
  3.                     ModifyProgressBar(hPB,"File status ",1,1);
  4.                     SendMessage(hPB, PBM_SETPOS, (WPARAM) 100, 0) ;
  5.                 }else{
  6.                     ModifyProgressBar(hPB,"File status ",1,1);
  7.                     SendMessage(hPB, PBM_SETPOS, (WPARAM) 0, 0) ;
  8.                 }

^ ok it works but i can do more

Ok insted of it going to 100% and thats it no ACTUWAL percent i need an actuwall download here

Lcc-win32 Code:
  1. ModifyProgressBar(hPB,"File status ",1,1);
  2.                     SendMessage(hPB, PBM_SETPOS, [FONT="Arial Black"][COLOR="Red"](WPARAM) 100[/COLOR][/FONT], 0) ;