Qbasicnews.com

Full Version: An "Alternative" Compile
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well, I have been trying to compile my outrageously Newbie-made game for awhile now, but it is just so darn inefficient and huge that it wont compile, so I came up with this alternate method (that works to a degree.) This is what I do.

Put all of the files for QB 4.5 (QB, LIB, QB.QLB...) and all the files for QMIDI (that I need) (SBMIDI, SBSIM...etc) and all the files needed for the game (.PUT image files and whatnot) into a folder and then the .BAS form of the game itself, and then I make a .BAT file saying

Code:
SBMIDI
SBSIM
QB/L/RUN MOKLI.BAS

and it works! Well, mostly. The only REAL problem is... it is IN qbasic after the user finishes playing. So I guess the real question here is ... HOW can I have it exit DOS so that it's just windows again? Umm, I don't know if anyone can help, but any help is appreciated. Thanks.
Instead of using END, use SYSTEM at the end of your program.
sure, and don't forget to add these lines at the end of your code:

Code:
SBSIM /U
SBMIDI /U

to clean up memory of TSRs.

Also note that if you do this you'll have to distribute QB.EXE along with your game, which is *virtually* illegal.
Yes, I realize this, but it's not 'commercial,' it's just so that my friends can tell me how it's going so far (because the game is far from being completed, it's in what I like to call Alpha[FIRST] Demo[NOT DONE YET] Mode)