News:

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

Progress In Command-Line

Started by nathanpc, October 09, 2009, 12:09:15 AM

Previous topic - Next topic

nathanpc

Hello,
I'm developing a test application to download files, but i want to know how i can put a progress bar in this command-line program to show the progress of the download, i don't know if it's possible to do this, but i hope i can, my test code to do this is here:
.386
.model flat,stdcall
option casemap:none
include \masm32\include\masm32rt.inc
include \masm32\include\urlmon.inc
includelib \masm32\lib\urlmon.lib

.code
start proc
    invoke URLDownloadToFile, NULL, chr$("http://website.assemblercode.com/masm32/m32v10r.zip"), chr$("D:\m32v10r.zip"), 0, 0
    inkey
    exit
start endp
end start


Best Regards,
Nathan Paulino Campos

jj2007

Your last parameter is the key. Check MSDN and Jackal's post.

nathanpc

I was reading the MSDN article, but i don't know how to implement it in my project.

Regards.

jj2007

I haven't done it myself, but Jackal seems to have gone pretty far. Check the attachment in his top post for this snippet.

OnProgressProc PROC lpThis:DWORD, ulProgress:DWORD,ulProgressMax:DWORD,ulStatusCode:DWORD,szStatusText:DWORD
   mov eax, E_NOTIMPL
   ret
OnProgressProc ENDP

nathanpc


ragdog

Look in the genesysdownloader here on board

PBrennick

Thanks RagDog and, Nathan, I would be glad to help you with your little project if it is necessary. Just PM me. My presence is spotty but right now I am here.

Paul
The GeneSys Project is available from:
The Repository or My crappy website