Solved

How to Load Quick Basic Files?

Posted on 2013-01-24
7
439 Views
Last Modified: 2013-01-24
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\gageblok.bas,gageblok.obj;
C:\QB45\bc/e/x/w/v C:\qb45\current\gageblok\bloklib.bas,bloklib.obj;
C:\QB45\bc/e/x/w/v C:\qb45\current\gageblok\bloklib2.bas,bloklib2.obj;
C:\QB45\bc/e/x/w/v C:\qb45\current\gageblok\bloklib3.bas,bloklib3.obj;
C:\QB45\link gageblok + bloklib + bloklib2 + bloklib3,,,\qb45\brun45.lib /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
0
Comment
Question by:mcsdguyian
  • 4
  • 3
7 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 38817370
the .bat file is used to compile the .bas files into a monolithic .exe file, the compiled file is copied to the specific folder: C:\newprogs
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
0
 

Author Comment

by:mcsdguyian
ID: 38817382
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
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 38817397
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
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:mcsdguyian
ID: 38817403
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?
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 38817407
The last time I used quickbasic it was 1988, so I don't remember the details of QB usage.
But a .bas file is a regular text file, you don't need quickbasic, use Notepad or any other fancy editor.
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 38817414
if you have troubles trying to run the .exe application, try to run it on DosBox (http://www.dosbox.com/)
0
 

Author Comment

by:mcsdguyian
ID: 38817420
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
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now