mcsdguyian
asked on
How to Load Quick Basic Files?
Ok here is a good one. I want check functionality of certain aspects of a old program that is being rewritten. The thing is I am really not sure how to load an old Quick Basic program. I have problems running it so I don't know if I am doing something wrong.
I have the Quick Basic program. I believe I have all the files, but I am not sure. How Can I load the files I have and determine if I have them all to make the program function?
I have the following files (9) .BAS, (1) .MAK, (1) .MAP, and a .BAT file. The .BAT files has the following line of code.
C:\QB45\bc/e/x/w/v C:\qb45\current\gageblok\g ageblok.ba s,gageblok .obj;
C:\QB45\bc/e/x/w/v C:\qb45\current\gageblok\b loklib.bas ,bloklib.o bj;
C:\QB45\bc/e/x/w/v C:\qb45\current\gageblok\b loklib2.ba s,bloklib2 .obj;
C:\QB45\bc/e/x/w/v C:\qb45\current\gageblok\b loklib3.ba s,bloklib3 .obj;
C:\QB45\link gageblok + bloklib + bloklib2 + bloklib3,,,\qb45\brun45.li b /e;
copy gageblok.exe C:\newprogs
del *.obj
del gageblok.exe
What is the .BAT file used for? ay help understanding it would be great I haven't messed with Quick Basic since middle school.
Thanks
Ian
I have the Quick Basic program. I believe I have all the files, but I am not sure. How Can I load the files I have and determine if I have them all to make the program function?
I have the following files (9) .BAS, (1) .MAK, (1) .MAP, and a .BAT file. The .BAT files has the following line of code.
C:\QB45\bc/e/x/w/v C:\qb45\current\gageblok\g
C:\QB45\bc/e/x/w/v C:\qb45\current\gageblok\b
C:\QB45\bc/e/x/w/v C:\qb45\current\gageblok\b
C:\QB45\bc/e/x/w/v C:\qb45\current\gageblok\b
C:\QB45\link gageblok + bloklib + bloklib2 + bloklib3,,,\qb45\brun45.li
copy gageblok.exe C:\newprogs
del *.obj
del gageblok.exe
What is the .BAT file used for? ay help understanding it would be great I haven't messed with Quick Basic since middle school.
Thanks
Ian
ASKER
Thanks I have the quick basic 4.5 I just am not sure how to load all the files and make sure nothing is missing and actually run it with the multiple modules.
I seem to only execute the module I am in and not the whole project
I seem to only execute the module I am in and not the whole project
regarding the files needed, it seems you need: gageblok.bas, bloklib,bas, bloklib2.bas and bloklib3.bas and the folder C:\newprogs already created
the .map and .mak files seem to be not necessary
if everything went well when preparing the application using the .bat file, then you can execute the application by typing:
C:\newprogs\gageblok.exe
the .map and .mak files seem to be not necessary
if everything went well when preparing the application using the .bat file, then you can execute the application by typing:
C:\newprogs\gageblok.exe
ASKER
Thanks for your help, its very much appreciated. How do I load the program in Quick Basic though and run it there before compiling it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if you have troubles trying to run the .exe application, try to run it on DosBox (http://www.dosbox.com/)
ASKER
I know QuickBasic is old. My .BAS were actually binary and I could not view them, but I was able to open them in QuickBasic and Save them to a Text .BAS. I am just opening them in .NET and follow the code that way. DosBox is a great little program.
Thanks for your help!
Ian
Thanks for your help!
Ian
So, the .bat file is not used for executing the application, it is used to prepare the application once.
In order to make it work, you will need to install the Basic compiler (bc.exe) in the folder c:\qb45
To obtain quickbasic 4.5, try with the following page:
http://www.qbcafe.net/en/qbasic-downloads/compiler/qbasic-compiler.htm