I programmed a couple of things in QBASIC, and i noticed it saves them as a '*.bas' file. Does anyone know if and how, QBASIC can be used to compile programs? Thanks in advance.
Printable View
I programmed a couple of things in QBASIC, and i noticed it saves them as a '*.bas' file. Does anyone know if and how, QBASIC can be used to compile programs? Thanks in advance.
In the Q-basic compiler , there should be an option to compile it.. The way i remember it , is that it turns it straight into an exe file...
there's a basic compiler called first basic made by powerbasic. its shareware that doesn't expire (nag screen) and can be d/led from their site. its not exectly the same as Qbasic but about 97% similar. great little proggie
Qbasic i believe didn't make stand alone apps until ver 5. i believe the option is under "run" but you have to change the way you compile the program from "memory" to "executable"
The way I understand it, if you wanted to compile into an EXE, you
would need QuickBasic, the commercial version. Qbasic was the
free version that came bundled with DOS, and would not compile,
but you could run progs by invoking Qbasic in a batch file with
the BAS file as an argument.
Maybe someone has produced a free clone, but Microsoft QuickBasic
was not free, AFAIK.
:cool:
QBASIC does not Compile however QuickBasic /TurboBASIC will do the job for you under the COMPILE Menu
-Goodluck
As I recall,
Qbasic shipped with DOS 5? It did not compile unless you bought the commercial version.
Thanks folks you have made an old man very happy..........tears of nostalgia :D
A mate of mine just gave me a set of (still in their brown paper wrapping) disks for DOS 4.0.............. I am a little bit behind in catching all the latest exploits :)
Does it not strike you as perverse that DOS 4 is probably more secure than XP Pro?
Just a few thoughts.............
Cheers
QuickBasic 4.5 and 7.1 are the only ones shipped with a compiler..
I personaly like(d) 4.5 better then 7.1 (also called PDS)..
I know I'm not supposed to "support wares" but using google you should be able to find you a download site (under 2Mb)..
Or you could buy a copy (second hand ??)
http://www.google.com/search?q=QuickBasic+4%2E5
Qbasic.... that was a good prog.........
10 cls
15 input "name:";n$
20 print "Hello ";n$;" this is ur PC "
30 print "what would u like to do (type list for a list ) ? "
40 input ">";t$
50 if t$ = "list" goto 100
60 if t$ = "end" goto 999
70 if t$ = "print" goto 200
....
........
.....
999 end
the good old days.... when it was so simple........
Yeah, quick Basic 4.5 should do the job, I used it myself until I grew out of QB. It is possible to download a version of it for free but you are supposed to delete it within 24 hours. Basic compilers might work but I have had a lot of problems with them when compiling large QB proggies. Here is the site: http://muratelic.sitemynet.com/qbasic/qb13.htm
Hope that helps!