Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / URLmon

Author
Message
dapaintballer 331
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: USA
Posted: 26th Mar 2006 07:10
what is the syntax to download a file using the dll urlmon.dll?
http://www.dll-files.com/dllindex/dll-files.shtml?urlmon

i just want to:
1. choose a url to get it from
2. choose a destination location
3. not much else

~`Gamerssoft.com'~
Scilynt
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: .-#-.
Posted: 26th Mar 2006 11:45
URLDownloadToFileA(0, LPCSTR sUrl, LPCSTR sFilename, 0, 0);

The last parameter can also be the address of a callback function.

And if you wanted a DBP version

dapaintballer 331
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: USA
Posted: 26th Mar 2006 17:43
THANKS A LOT. Is there a page that explains the other arguments, becuase google isn't helping me much.

I have db pro, and dbc so thanks for both.

~`Gamerssoft.com'~
Scilynt
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: .-#-.
Posted: 26th Mar 2006 18:29 Edited at: 26th Mar 2006 18:29
This may help, but in brief: The first parameter is used when calling from an ActiveX control and is not applicable. The fourth parameter is reserved and must always be 0. The last parameter is the callback function so you can, for example, display progress, though in Dark BASIC Classic or Pro, this is also not applicable.
Sergey K
21
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 6th Apr 2006 16:47
(or just use my "Goga's Free DBP Plugin 2.0" it also got downloading file feature but with one command only.. )

MyNewSite:http://gogetax.com
Forums(About BLO and more):http://gogetax.com/forum
Oneka
21
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 7th Apr 2006 20:05 Edited at: 7th Apr 2006 20:25
Quick question, with the URLmon.dll I have been trying, but how do you report progress of the file being downloading, like 530kb of 45.mb? or something like that?

EDIT:
And is finished downloading...


Making better games everday!
Oh yeah and just so you know its Oh-nek-a not One-ka!
Scilynt
22
Years of Service
User Offline
Joined: 13th Nov 2002
Location: .-#-.
Posted: 7th Apr 2006 22:35
It's, to the best of my knowledge, not possible in DBP. You need to specify the address of a function as the last parameter in the DownloadToFile function. If you were to write it in a language capable of callbacks, you should look here for information on what the callback function is.
Oneka
21
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 8th Apr 2006 01:16
oh I wish i could do it...iam not that great at making dlls...
mainly because i havent spent the time to learn the langauges yet....


Making better games everday!
Oh yeah and just so you know its Oh-nek-a not One-ka!
Sergey K
21
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 8th Apr 2006 01:30
Quote: "Quick question, with the URLmon.dll I have been trying, but how do you report progress of the file being downloading, like 530kb of 45.mb? or something like that?"


not possible. the UrlMon is one thread dll.. wich means, the engine will freeze up until the file will be downloaded.

MyNewSite:http://gogetax.com
Forums(About BLO and more):http://gogetax.com/forum

Login to post a reply

Server time is: 2025-05-18 22:08:00
Your offset time is: 2025-05-18 22:08:00