old QBasic code ??? (from 1994/1995 high school class)

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
oembry
Newbie
Posts: 6
Joined: Wed Apr 27, 2005 8:32 am

old QBasic code ??? (from 1994/1995 high school class)

Post by oembry » Wed Apr 27, 2005 8:35 am

I have some old programs written I think in QBasic 10 years ago in a programming class that I took in high school, however, I have never been able to open any of the .bas files to read (and edit) them. Most of the files will run, but a few won't because of errors, and when I try to debug them, I can't.



Is there anything that can be done??? Thank you.

MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows » Wed Apr 27, 2005 8:39 am

Are you running the same versin of QB?
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com

oembry
Newbie
Posts: 6
Joined: Wed Apr 27, 2005 8:32 am

Re: old QBasic code ??? (from 1994/1995 high school class)

Post by oembry » Wed Apr 27, 2005 10:13 am

Well, I was able to successfully download and use QBasic versions 4.5 and 7.1, and I have been able to open all of my files except for 1, which is the main one that I had wanted to view.

I see that I had edited the file in 2002, not sure of how or where, but I can use a binary file viewer to view the (jumbled) text within the file; however, when using both versions I get the same error: BAD FILE MODE.

I have read both of the HELP files for this error, but do not remember whether it had any include files or anything other problems that would keep it from being opened.


Thank you.

MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows » Wed Apr 27, 2005 10:39 am

I think that's the problem with those particular files either they have CALL ABSOLUTE in them...or function declarations seem to expect a parameter just because you declared it as DECLARE SomeSub () for those games you might want to get yourself good old QBasic 1.1 :-)...that's what I did...or go about the task of porting QBasic to QB ;-). Only Microsoft LOL that's all I can say ;-)...
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com

Guest

Post by Guest » Wed Apr 27, 2005 7:02 pm

Why not just open up the .bas files from notepad, and then copy and the code to qbasic?

User avatar
Xerol
Veteran
Posts: 81
Joined: Tue Jan 04, 2005 6:27 pm
Location: Timonium, MD
Contact:

Post by Xerol » Wed Apr 27, 2005 7:42 pm

They might be saved in compressed format, in which case you might want to try 1.1.
If you need music composed in MP3, WAV, or MIDI format, please contact me via email.

Xerol's Music - Updated Regularly!

oembry
Newbie
Posts: 6
Joined: Wed Apr 27, 2005 8:32 am

update of progress

Post by oembry » Thu Apr 28, 2005 8:04 am

I have been able to open up, view, and run all of the programs except for one by using versions 4.5 and 7.1 (QBasic). I was never able to view the files because they were not saved in ASCII format, but rather QBasic binary.

However, the most important program that I want, I edited back in 2002 on a 386SX computer that I still have from (not sure of how many years ago) using its QuickBasic version. I tried using the computer last night, but the floppy drives (neither) were working, so I am going to have find out what's going on so that I can use my 3.5" inch floppy to try and re-access my program (the only version that would run or do anything with that program).

I can view the file with a Binary viewer (the Binary and ASCII), however the non-ASCII characters are not displayed, so I do not know all was written for the program.

I had tried 1.1 and still no luck, it gave me a Bad file format error (or something like that).

MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows » Thu Apr 28, 2005 8:07 am

Maybe it was a GWBasic binary file. if that's the case, go here

http://www.ojodepez-fanzine.net/network/qbdl/

Get GWBASIC and start it up,
Open your file and the save it as text....if I remember it should be SAVE "filename", T or something....then you should be able to open it with the other compilers
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com

oembry
Newbie
Posts: 6
Joined: Wed Apr 27, 2005 8:32 am

not GWBasic

Post by oembry » Thu Apr 28, 2005 9:47 am

No, it wasn't GWBasic, had tried that and several other comparable Basic compilers (including BASIC) and none of them worked.

MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows » Thu Apr 28, 2005 10:30 am

could you post the file as an attachment or a link, this way I could try to open it :-)
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com

oembry
Newbie
Posts: 6
Joined: Wed Apr 27, 2005 8:32 am

link for file

Post by oembry » Thu Apr 28, 2005 2:02 pm


MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows » Thu Apr 28, 2005 2:18 pm

hmmmat least the top of that file seems to be HTML
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com

oembry
Newbie
Posts: 6
Joined: Wed Apr 27, 2005 8:32 am

problem with uploading file and/or just web server

Post by oembry » Thu Apr 28, 2005 3:56 pm

if you give me you e-mail address, I can send the file to you as an attachment, there should not have been any HTML in that program (that was 10 years ago before I even used the Internet for the first time)

Post Reply