Page 1 of 2

Uploading a QuickBasic Program to Website?

Posted: Fri Jul 09, 2004 4:42 am
by BeaglepackGP
Can anyone tell me how to set up a QB program on my website, so that people can download it from there?

Thanks, and Best Regards,

BeaglepackGP

Re: Uploading a QuickBasic Program to Website?

Posted: Fri Jul 09, 2004 6:27 am
by Guest
Some websites are funny about what they allow to be downloaded.

I would suggest you put anything in a zip file, then upload the zip file and provide a link to it.

Depending on where your web site is, most will allow you to use something like WS_FTP to upload (or transfer back to your computer).

I like WS_FTPLE (light edition) if you can find it

Re: Uploading a QuickBasic Program to Website?

Posted: Fri Jul 09, 2004 6:32 am
by Guest
In an html file use
<a href="myfile.zip">download here</a>

assuming the file is in the same directory as the html file
otherwise you could use the entire path
<a href="http://mywebsite.com/myfile.zip">download here</a>

upload that html file
then when they access that html file, they should be able to download it.

Re: Uploading a QuickBasic Program to Website?

Posted: Sat Jul 10, 2004 2:04 am
by BeaglepackGP
Great! &nbsp;Thanks so much for the help. &nbsp;I'll have to go and digest both of these replies now. &nbsp;I have a book on html, but haven't really gotten into it yet. &nbsp;I guess this is the time!

I'll also check out the program that was mentioned.

I really appreciate the help of everyone who responded.

Thanks again,
BeaglepackGP

Re: Uploading a QuickBasic Program to Website?

Posted: Sat Jul 10, 2004 4:03 am
by Dr_Davenstein
I don't know if you have already figured it out, but here is a link that I used to learn html. It's getting dated now, but it teaches you basic html.;)

Re: Uploading a QuickBasic Program to Website?

Posted: Sat Jul 10, 2004 5:40 am
by Guest
If you are using internet explorer, you can see the code
for html web pages by right clicking on an area that does
not have a graphic, then select view source.

Now these days, many of the web sites have compiled
html or cgi programs and other things running that are
harder to digest so to speak.

But you can still find lots of html web pages that may help you with your learning.

The basic outline (template) of an html file (which is just basically a script language interpreted by browsers and saved as text) is:

I hope this shows up ok

Code: Select all

<html>
 <Head>
 &nbsp; <title>My Web Page</title>
 </head>
 &nbsp;<body>
(web page stuff here)

 </body>
</html>
If the PRE shows up ignore that -- I was trying to use that instead of CODE tags

Re: Uploading a QuickBasic Program to Website?

Posted: Sat Jul 10, 2004 6:55 am
by BeaglepackGP
Wow! &nbsp;I just right-clicked, then clicked on the view-source thing you mentioned. &nbsp;It looks like a big old mess! &nbsp;I guess it'll take a while to figure that out. &nbsp;But I do have a pretty good book on it. &nbsp;It's, &nbsp;"The official HTML Publishing For Netscape Guide," but the book says that it's not just for netscape. &nbsp;It says the same code will work just as well on any browser, but that an html page might look different, depending on the browser you're using.

Well, I'll have to work on that, but thanks for the help. &nbsp;I really appreciate that!

I think it's really cool to have a forum where you can go and get your questions asked. &nbsp;I still have a long ways to go with QuickBasic, much less attempting to do a webpage with HTML. &nbsp;For now, when I finally get my first game finished, it's going to have to share a webpage with my regular business: &nbsp;that page was made the easy way, using the tools that the host provided! &nbsp;But, I can see that it will be much better to be able to do it myself with HTML, and maybe using JScript or even Perl too . . . but that's all in the future.

My game is not finished yet, but I'm glad you answered my question, because as soon as I do get it finished, I'm going to want to get it up onto the web as soon as I can. &nbsp;I'm sure every programmer can understand that!

And until I finish that first game, I'm not really a programmer yet, anyway. &nbsp;At least that's the way I see it.

But, like I said, it's great to be able to use this forum, and to get such great replies from real programmers, who care about helping us new guys come along!

Thanks again,
BeaglepackGP

Re: Uploading a QuickBasic Program to Website?

Posted: Sat Jul 10, 2004 7:09 am
by BeaglepackGP
Hey, Dr_Davenstein,

I almost forgot you! &nbsp;Sorry about that. &nbsp;I clicked on the link you provided, and guess what? &nbsp;I have that book too!

So, I think I've got the HTML books that I need to get me started. &nbsp;I've already begun reading both of the html books that I have--including the one at the link you gave me!

Now I have to concentrate on &nbsp;getting that program finished! &nbsp;It's a pretty easy game desgn, really, but for a first program . . . well, you guys must remember your first program. &nbsp;Was it a somewhat overwhelming task?

I look at the empty compiler, and think: &nbsp;"I just finished reading the book on QBasic, but now, how do I make the game?"

Did you guys ever go through that? &nbsp;Right now I'm trying to figure out how I'm going to handle the simple graphics that I have planned for the game. &nbsp;It would probably be nothing for you guys (or any of the other real programmers), but like I said, this is my first game, (I just started programming when I bought my first book a couple of months ago), and it's a little overwhelming to me. &nbsp;I'm going to have to check out some of the tutorials, and it looks like there's some good ones at the QuickBasic Cafe. &nbsp;But other than that, I have to write this one on my own! &nbsp;And I'm sure you all know what I mean. &nbsp;I've got to get that first one done, all by myself, but it sure is nice to know that if I run into trouble, I can come to this forum, and there's a whole bunch of real programmers that are ready and willing to help out with questions.

So, thanks again, everyone. &nbsp;I really do appreciate it!

BeaglepackGP

Re: Uploading a QuickBasic Program to Website?

Posted: Sun Jul 11, 2004 7:51 am
by Guest
Don't get the cart before the horse so-to-speak.

Once you figured out you had legs, you didn't go try out
for the olympic 100 meter dash the next day.

Start with something simple, and work up. I know you
want to be an expert programmer NOW not tomorrow.

Well, it's work, like anything else worthwhile. Apply yourself, and learn, learn, &nbsp;learn, study,study,study.

Look at code samples. Try to figure out what they did and why the program works the way it does.

Ask questions.

Re: Uploading a QuickBasic Program to Website?

Posted: Fri Jul 16, 2004 6:43 am
by Dr_Davenstein
Real programmers? &nbsp;::)
Well, not me anyway. I'm just a welder. I only do this for a hobby.;D

I'll give you a little advice though... Visit more than one forum... Mainly, this one. It has alot of active users. Go there, register and start asking away. Just goto the "newbie help" section and most of the regulars will be glad to help you with whatever questions you might have. ;) Also, like he was saying, study sample programs to see how they work. That's how I learned everything I know.

Re: Uploading a QuickBasic Program to Website?

Posted: Sat Jul 17, 2004 3:10 pm
by BeaglepackGP
Thanks, that sounds like good advice. &nbsp;But I've been having a problem with downloading source code. &nbsp;I download it, then I don't know what to do with it. &nbsp;What I mean is, I don't know how to open it. &nbsp;When I click on it, I get a message saying that the computer can't open that file, or something like that.

I know this is really dumb, but it's a problem I'm having with source code from other programming languages too--like Pascal and C++. &nbsp;I'm sure the cure for this is real simple, so can you tell me what I'm doing wrong? &nbsp;I've tried opening the source code in various text editors too, without any luck.

And here's one more question: &nbsp;How do I deal with the real neat looking libraries that I see on various sites. &nbsp;Most especially, I'm trying to download Graphics libraries, but I don't know how to handle (install) them either. &nbsp;Can you tell me how to do that too, so that I can use them.

Graphics is still my biggest problem. &nbsp;I've followed the OOP design steps in the books for the program that I want to write (and I think it's a fairly simple program), but I'm stumped by how do I draw the graphics? &nbsp;The book I have, "Absolute Beginner's Guide to QBasic," only deals with drawing lines and circles and stuff, and with changing colors. &nbsp;But I need to make graphics that are a little more advanced than stick figures. &nbsp;Most of the books that I have, deal mostly with math problems, not graphics--and I know I need to get some better books, but the ones I have now were mostly free . . . .money can be an issue!

I'm not looking for "Medal of Honor," here. &nbsp;I just want to draw a couple of people who move, grass, the sky, a and a stone house which they build, one block at a time. &nbsp;Oh, they chip the stone blocks off a rock wall, and carry them over to the house, then put the blocks on top of what they have already laid down.

Is that real hard? &nbsp;I mean, for you guys? &nbsp;For me, I just don't know where to start.

But, I'll do click on that other link you have me, and check out that forum too. &nbsp;The more the merrier!

Thanks for your help,
Best Regards,
BeaglepackGP

Re: Uploading a QuickBasic Program to Website?

Posted: Sun Jul 18, 2004 2:36 am
by Guest
Most downloads are zip files. If that is your case, you will need a program to "unzip" it/them.

zip is probably the most popular of the compression tools and has been around for a good while.

There are free zip/unzip programs around. But even if you buy one, they are not expensive. Maybe $20.

As far as libraries go:
You will need QuickBasic (not qbasic) to use a library for QB.

to load the library you start QB
QB /L libraryname

where libraryname is the name of the library whatever.qlb

i still think you are getting ahead of yourself though.

You have a lot to learn, it sounds like to me, before
getting into graphics. You better get comfortable with
text mode programming first.

Re: Uploading a QuickBasic Program to Website?

Posted: Sun Jul 18, 2004 7:44 am
by BeaglepackGP
Thank you for the advice! &nbsp;I really do appreciate it.

One question about the libraries: &nbsp;Do I save them on my hard drive in there own folder (ex: &nbsp;C:/ProgramFiles/["Name_of_Library"]?

Also, I think I am ready to handle graphics. &nbsp;I've worked the example programs all the way through the book. &nbsp;But this book comes up short on explanations for doing graphics. &nbsp;It's a guide for Absolute Beginners. &nbsp;And, although I know that I am an Absolute Beginner, I'm not going to let that stop me from advancing beyond my current level of knowledge. &nbsp;After all, what would be the point of just staying right where I am, and never trying to go further?

I know you are giving me great advice, and I really do appreciate it. &nbsp;But I'm ready to take the dive into deeper water. &nbsp;On the way, I'll keep a look-out for sharks! &nbsp;And I don't mind getting bit a few times, if that will help me learn more.

Also, please forgive me for "putting the horse before the cart." &nbsp;I probably am doing just that. &nbsp;But I'm hungry to learn more! &nbsp;And I want to dive into graphics, regardless of the shark-infested waters!

I think that you can probably understand where I'm coming from. &nbsp;Does anyone get to be a "real" programmer be just sitting back and waiting? &nbsp;Or do they jump in with both feet first, get their hands dirty and desperately yearn for more knowledge?

I will continue to study beginner tutorials. &nbsp;But, like I said, I'm hungry, and graphics looks to me like the main couse on the menu. &nbsp;And I am also VERY eager to work on the game that I have designed.

So please forgive me if I do get ahead of myself! &nbsp;I am taking your advice, and considering it with the greatest respect. &nbsp;But right now, I need to code some graphics for my game! &nbsp;And I won't stop until I have learned how to do it.

Thanks again,
BeaglepackGP

Re: Uploading a QuickBasic Program to Website?

Posted: Sun Jul 18, 2004 7:46 am
by BeaglepackGP
Oh, I forgot to say that I do have WinZip. &nbsp;I've been a beta tester for them for about 5 or 6 years.

My question about downloading the libraries, is mostly concerned with Where do I put them?

Should they be in the same folder as my QuickBasic Compiler?

Thanks,
Beagle

Re: Uploading a QuickBasic Program to Website?

Posted: Sun Jul 18, 2004 8:18 am
by Dr_Davenstein
It doesn't matter if you put them in the same directory as long as you set the correct path in the IDE.

Here's a link from when I showed someone else how to set up a library. I hope it helps you.:D