Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: CrAz3D on April 12, 2003, 08:38 PM

Title: msinet.ocx
Post by: CrAz3D on April 12, 2003, 08:38 PM
I was wondering how I might go about using msinet to collect a database off of the internet...

I am trying to just switch as little as possible from main database code which uses database.txt as source.

If someone could give me a pointer from this code on how to convert real quick I'd be greatful.:

Open App.Path & "\database.txt" For Input As #1
--How would I use a converted ver of that to receive database?
Title: Re:msinet.ocx
Post by: Banana fanna fo fanna on April 12, 2003, 08:42 PM
Quote from: CrAz3D on April 12, 2003, 08:38 PM
I was wondering how I might go about using msinet to collect a database off of the internet...

I am trying to just switch as little as possible from main database code which uses database.txt as source.

If someone could give me a pointer from this code on how to convert real quick I'd be greatful.:

Open App.Path & "\database.txt" For Input As #1
--How would I use a converted ver of that to receive database?
Very simple my young lad. Simply keep your existing code but add this in form_load or what not:

open app.path & "\database.txt" for output as #1
print #1, inet1.openurl("http://www.yoursite.com/database.txt')
close #1
Title: Re:msinet.ocx
Post by: ILurker on April 12, 2003, 08:45 PM
I find it much better/easier to download the file from a site, then open it, then after delete it, if you want.

It may not be as fast, but it doesn't use cheap "allready made" sources  ;)

--> I don't like stealing other people's codes
Title: Re:msinet.ocx
Post by: CrAz3D on April 12, 2003, 08:57 PM
I'm tryin' to use as a cheap & simple auth script basically, not really a db...though I might want to sometime.

How might I be able to use the GetChucnk var for inet?
Title: Re:msinet.ocx
Post by: CrAz3D on April 12, 2003, 10:42 PM
Screw msinet.ocx.............thnx to all tried, I'm trying just to download a file with it now.

thnx alot allz
Title: Re:msinet.ocx
Post by: ILurker on April 13, 2003, 01:04 AM
If you message me on a.i.m, I'll give you a download source code.