Download Pelles C here: http://www.smorgasbordet.com/pellesc/
C:\Program Files\PellesC_V13\Include\Win\ocidl.h(25): error #2158: Unrecognized type 'interface' (did you mean: ?).
C:\Program Files\PellesC_V13\Include\Win\ocidl.h(25): error #2119: Redeclaration of 'IEnumConnections', previously declared at C:\Program Files\PellesC_V13\Include\Win\ocidl.h(25).
.
.
.
C:\Program Files\PellesC_V13\Include\Win\ocidl.h(190): fatal error #2210: More than 100 errors, please improve yourself.
DownloadFile.exe http://address filename.extinclude DownloadFile.inc
.data?
buffer db 512 dup(?)
.code
start:
call main
invoke ExitProcess,eax
main PROC uses esi
mov esi,OFFSET buffer
invoke ParseCmdLine,esi
cmp eax,3
jne finish
xor ecx,ecx
invoke URLDownloadToFile,ecx,DWORD PTR [esi+4],\
DWORD PTR [esi+8],BINDF_GETNEWESTVERSION,ecx
finish:
ret
main ENDP
ParseCmdLine PROC uses esi edi ebx _buffer:DWORD
push 0
mov esi,_buffer
lea edi,[esi+256]
invoke GetCommandLine
lea edx,[eax-1]
mov ax,32+256*34
mov ch,al
mov bx,9+256*9
scan:
inc edx
mov cl,BYTE PTR [edx]
test cl,cl
jz finish
cmp cl,al
je scan
cmp cl,bh
je scan
inc DWORD PTR [esp]
mov DWORD PTR [esi],edi
add esi,4
restart:
mov cl,BYTE PTR [edx]
test cl,cl
jne @f
mov BYTE PTR [edi],cl
jmp finish
@@:
cmp cl,ch
je end_of_line
cmp cl,bl
je end_of_line
cmp cl,ah
jne @f
xor ch,al
xor bl,bh
jmp next_char
@@:
mov BYTE PTR [edi],cl
inc edi
next_char:
inc edx
jmp restart
end_of_line:
mov BYTE PTR [edi],0
inc edi
jmp scan
finish:
pop eax
ret
ParseCmdLine ENDP
END start
Page created in 0.022 seconds with 11 queries.