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.

DarkBASIC Discussion / Downloading files

Author
Message
Bob_42
19
Years of Service
User Offline
Joined: 15th Sep 2006
Location: Guernsey
Posted: 21st Oct 2006 00:17
is it possible to make a program that can download things from the internet if the link is specified, i was just trying to make a simple program that would download the first file and once that was completed the next would start..

indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st Oct 2006 02:50
you could establish an ftp link from a server

Bob_42
19
Years of Service
User Offline
Joined: 15th Sep 2006
Location: Guernsey
Posted: 21st Oct 2006 16:16
i'm not entirley sure how to use these functions, as i have never had to use them, how would i go about using the direct download link to download the file?

Lukas W
22
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 21st Oct 2006 23:51
Hello,

i wrote a function for this when i was developing Game Manager.

here is the function:


Bob_42
19
Years of Service
User Offline
Joined: 15th Sep 2006
Location: Guernsey
Posted: 22nd Oct 2006 00:24 Edited at: 22nd Oct 2006 01:34
it works exactly like i want, except for one small fact, i tried downloading a rmvb file, and it won't play, i thought it may have just been a bad file, so i downloaded it the normal way and it works, so does this not work for all file types?

EDIT: i've been doing a little research into the dll used, and i haven't found that this i limitation to the file types that can be downloaded, and there is certainly nothing in the code that would prevent it from downloading properly, any idea why this isn't working?

Gamer Making
19
Years of Service
User Offline
Joined: 20th Sep 2006
Location: sitting at the comp programming
Posted: 22nd Oct 2006 20:41
Exactly how can you know how to make a obkect if you might not know the code like this is one example load "gambit 7.bmp",1

Minh Tran
Gamer Making
19
Years of Service
User Offline
Joined: 20th Sep 2006
Location: sitting at the comp programming
Posted: 22nd Oct 2006 20:43
lucas that is a cool code!How did you make that code up?

Minh Tran
Bob_42
19
Years of Service
User Offline
Joined: 15th Sep 2006
Location: Guernsey
Posted: 23rd Oct 2006 01:30
i just tried downloading a different file type from the same site, and it worked, so that obviously not the problem...

is there a limitation to the file size, because that might explain the blank file, it stops downloading after a certain amount of time, i'm probably sounding really stupid, but my stupidity may get some answers XD

Lukas W
22
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 23rd Oct 2006 10:00
Quote: " lucas that is a cool code!How did you make that code up?"

i searched this forum.
it was originally written by somebody else, i just added the forumla to get filename$

Bob_42,
never heard of a rmvb file.

you can take a look at this, maybe this will help:
http://forum.thegamecreators.com/?m=forum_view&t=77150&b=18
it uses "wininet.dll" and write to a memblock. so you would get a progress bar, total file size etc.
though that is dbpro code.

Bob_42
19
Years of Service
User Offline
Joined: 15th Sep 2006
Location: Guernsey
Posted: 23rd Oct 2006 17:22
rmvb is just a realplayer file...

and i wish i had DBP, but sadly i have no money so spare ATM

Bob_42
19
Years of Service
User Offline
Joined: 15th Sep 2006
Location: Guernsey
Posted: 24th Oct 2006 01:29
just had a thought, is it possible to let DB communicate with another program, i.e. make another program download the file?

Login to post a reply

Server time is: 2026-07-07 13:15:55
Your offset time is: 2026-07-07 13:15:55