Discussion Locked

Making EXE using Qbasic

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Where can I find an excellent, well documented resource (with examples) on how to make an EXE file in Qbasic? I dont mean convert a qbasic file to EXE, I mean make a program in Qbasic that creates an EXE file. I know one of the lines contains "Open "xxx.exe" for binary as #x"
I need to know the details as to what is the first character represent in the exe file and the valid values, the second, and so on and so forth. The better the documentation, the better chances of getting the points.Please dont write: Choose Make EXE from Run menu and type in a name because that will just convert the basic program into an exe.

I want both an EXE and BAS file when the program is done. The BAS file is the qbasic file that makes EXE files.

6 replies

by amanabala

Correct me if I am wrong: From what I understood, you seem to want to create a "Compiler" using QBasic. Is it so? If yes, what is the programming language that you would like to compile? If you can give more details, may be I can help...

Good luck

by mike (from canada)

You got the basic idea. I need the program in qbasic that when you choose Start from the run menu, an EXE file is created. Please post another answer below.

by tjc

You could create an assembler in DATA statements and then have your program run something like debug that will create the exe file. But this would require an assember compiler on your computer also, which I think goes beyond what you are after.

by mike (from canada)

yes it does go beyond what I am after. I want to make a program that creates EXE files with no external files required other than the compiler used to turn my EXE making program into an EXE.

by georgeba

I think I know what you want. :-) BUT,
QBasic, which you probably have and came with DOS is an interpreter ONLY.
What you need is QuickBasic, which is compiler and will compile programs into a standalone EXE file.

by tjc

lets see if I get your question right 2 years latter - you want a program that can create it's own exe file - not a copiled program. right?

This discussion is closed to new replies.