Page 1 of 1

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

Posted: Wed Apr 27, 2005 8:35 am
by oembry
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.

Posted: Wed Apr 27, 2005 8:39 am
by MystikShadows
Are you running the same versin of QB?

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

Posted: Wed Apr 27, 2005 10:13 am
by oembry
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.

Posted: Wed Apr 27, 2005 10:39 am
by MystikShadows
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 ;-)...

Posted: Wed Apr 27, 2005 7:02 pm
by Guest
Why not just open up the .bas files from notepad, and then copy and the code to qbasic?

Posted: Wed Apr 27, 2005 7:42 pm
by Xerol
They might be saved in compressed format, in which case you might want to try 1.1.

update of progress

Posted: Thu Apr 28, 2005 8:04 am
by oembry
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).

Posted: Thu Apr 28, 2005 8:07 am
by MystikShadows
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

not GWBasic

Posted: Thu Apr 28, 2005 9:47 am
by oembry
No, it wasn't GWBasic, had tried that and several other comparable Basic compilers (including BASIC) and none of them worked.

Posted: Thu Apr 28, 2005 10:30 am
by MystikShadows
could you post the file as an attachment or a link, this way I could try to open it :-)

link for file

Posted: Thu Apr 28, 2005 2:02 pm
by oembry

Posted: Thu Apr 28, 2005 2:18 pm
by MystikShadows
hmmmat least the top of that file seems to be HTML

problem with uploading file and/or just web server

Posted: Thu Apr 28, 2005 3:56 pm
by oembry
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)