ok,well i use the chain command in alot of my programs coz in my opinion it makes things alot easier and organised.so is there a way to compile a load of files into one .exe file it all runs with no stupid error messeges?
from what i can understand, you can't compile all the images into a single exe. however, you can make a tileset. if you are using a tile editor (pixit, pp256, tiledx) then they should have info on how to make a tileset. if you compile your program into an exe that doesn't need support, then if you have the tiles in the same directory as the exe, then there should be no error. however, if you haven't compiled your code yet, you should almost HAVE to have your code and tiles in the same directory as qb 4.5. when you try to load up your files, what happends is that it looks for the files in the same folder that qb 4.5 is in. hope that helps.
so theres no way of compiling lots of separate .bas files into one exe? i understand what you're saying about tilesets and i know how this works etc but are you saying theres no way of compiling separate .bas files into one .exe file? if i compiled all the .bas files and had an exe for each one would they all run together then? i.e. if they all link together using the chain command?
oh. i thought you were talking about pictures. i don't know if you can. maybe you can with a .bat. i noticed that many programs use that to run their programs.
How can i make a .bat file,is it possible with qbasic 4.5?
if i do make a .bat file would i need to make a seperate .bat file for each .bas file or could they all sort of go into one .bat file?
cheers
You CAN COMPILE several bas files into one EXE file.
Here is how.
open the main program.
Other bas files will only contain subs and functions NO MAIN MODULE code except for the "MAIN" program.
Load the other bas files using the "LOAD" option rather than the OPEN option. Load them after you have used OPEN
to open the main program
This is a one-time thing. The next time you open the "main"
program, the other bas files will be automatically loaded for you via a MAK file that QB makes when you save.
When you compile, QB will compile each bas separately then
link them together into one exe file.
You may need to tweak the programs to get them to work as you want but I have made programs around 200K this way which
is large by DOS QB standards. (actually they are 100-150K but I use brun45 and chain too).
Play with it using dummy files first until you get the hang of it.
I tried what you said but i keep getting error messeges.ones saying either "error at module TITLE(the main module name) address (blah,blah,blah)" or a "this program has performed an illegal operation and will be shut down (etc)"......what can i do?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.