I have GWBASIC and its compiler. Can I use them on XP?

March 30, 2013 at 22:22:13
Specs: Windows XP, Dual with 1.5G Ram
Is it possible to write and compile programs with GWBASIC on an XP platform? If so, how? I have created a separate GWBASIC folder on my hard drive. I just want advice on how to use in without having to jump through hoops and/or use patches.

See More: I have GWBASIC and its compiler. Can I use them on XP?

Report •

March 31, 2013 at 03:30:49
Of course you can run GWBASIC under Win XP since XP can natively execute either 16 or 32 bit code. Just follow the usual procedures to compile and run your applications.

Report •

March 31, 2013 at 09:06:39
O.K. But two more "dumb" questions. Do I use any text editor? How can I "RUN" programs with the interpreter? Go to DOS prompt? Honestly don't know. I kinda need step-by-step directions. I am learning it all over again after bad head injury. Thanks.

Report •

March 31, 2013 at 10:27:12
You can run GWBASIC from the command prompt or create a shortcut on your desktop. I never used GWBASIC but its succesor QBasic under MS DOS 5.00. Since you refer to the legacy BASIC for DOS I point you to the following original user's guide:


Anyway I have a good experience of DOS under XP (that is not a DOS kernel system) and I am glad to support you on general issues if you need.

Report •

Related Solutions

March 31, 2013 at 12:57:18
You can write programs using either the interpeter (gwbasic.exe) or a text editor (notepad, or, my preference, EDIT). Anyway, without a compiler, you need gwbasic.exe to run the program: GWBASIC mypgrm
(The program will launch into execution immediately unless you put a STOP statement at the top of the program). You can save a program (from within the interpreter) as either ascii or "tokenized" format (default). To save as ascii:
SAVE "mypgrm",A
You can compile the program using BC.EXE (which comes with Qbasic or QuickBasic suite, I beleive, but it can be downloaded). You will also need "link.exe" and "brun45.lib" to make it fully executable. There are options for both BC and Link, but I forget what the BC options are, and it doesn't appear to have a -? or "help" function. Here's the options I use to eliminate prompting:
::====== compile.bat
BC /X /E /O %1 %1.OBJ %1.LST

But BCOM45.LIB (ref'd in line 3) is not always needed for the program to run as an executable, and it will make your .exe much larger. I guess it just depends on what-all your program does, whether it needs that library or not. (Link /help gives a list of options, but doesn't explain them). Most gwbasic programs are runnable as qbasic, and some qbasic programs will run as gwbasic as long as you add line numbers to every line (including comments). The library, BRUN45.LIB, IS necessary, but not explicitly called for by Link. I would just download the whole suite so you've always got what you need.

Report •

April 1, 2013 at 22:17:59
I got lucky. I found some (believe it or not) floppy disks that had all my work and good versions of both BASICA and GWBASIC. Both work fine. Sad part is I can't get the window large enough to be remotely useful. Also, LPRINT and LLIST do not talk to my printer. Do I have to let BASIC know where "LPT1" is? Any ideas?

Report •

April 2, 2013 at 05:37:49
Are you sure your printer is on LPT1? These days it's all network and USB printers.

You can share the printer, and connect to it as LPT1 over loopback. I think the command looks like this:

net use LPT1: \\<printer shared name>

How To Ask Questions The Smart Way

Report •

April 2, 2013 at 13:15:58
To connect a USB or network printer to LPT1

- share the printer by Start/Settings/Printers, right click your printer and select Share then enable sharing and choose a name e.g. HP6500;
- at prompt type Net use LPT1: \\%computername%\Printer_Name /persistent:YES

To enlarge GWBASIC window to full screen press Alt+Enter and again to return to window mode.

Maybe the Net use command must be issued at every boot.

Report •

Ask Question