User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Legacy and Other Languages section within the Software Development category of DaniWeb, a massive community of 426,563 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,708 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Legacy and Other Languages advertiser: Programming Forums
Views: 25410 | Replies: 6
Reply
Join Date: Dec 2005
Posts: 3
Reputation: kire is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kire kire is offline Offline
Newbie Poster

GW Basic running on WIndows 2000/XP

  #1  
Dec 14th, 2005
Hi!,

I have a bit of a problem here. I am looking into a few options. First of all, I have a program that was written in GWBASIC and it runs great on a DOS machine. It will even run in Windows 2000 under QBasic if you run it from there, but the .exe will not run under 2000 or XP.

I would like to solve this in a 2 steps. 1st, I would like to get the current program to compile so I can run it in 2000/XP. The program does quite a bit of interesting things such as screen calls and drawing graphics, it's quite a program in it's day. How do I compile this program into something that I can run in the 2000/XP environment?

If I can get this to work, this will just solve the initial problem. Eventually I need to rewrite it in like VB.NET. Does VB.NET have the capability of doing the kids of graphics that this current BASIC program can do such as drawing objects and then based on numbers for that object, change the drawing on the fly...

Thanks for the information. I am most interested in getting this program to run in the 2000/XP environment 1st then worry about the 2nd part later. This would buy us some time.

Erik
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: GW Basic running on WIndows 2000/XP

  #2  
Dec 15th, 2005
GWBasic is not a compiled language, neither is QBasic.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: Dec 2005
Posts: 3
Reputation: kire is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kire kire is offline Offline
Newbie Poster

Re: GW Basic running on WIndows 2000/XP

  #3  
Dec 15th, 2005
Thank you for your reply. So, do I have an option to somehow get this program to run under 2000/XP by using a compiler that would compile this code without having to rewrite it yet?

Thanks,

Originally Posted by jwenting
GWBasic is not a compiled language, neither is QBasic.
Reply With Quote  
Join Date: Aug 2005
Location: Oklahoma
Posts: 902
Reputation: chrisbliss18 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 21
chrisbliss18's Avatar
chrisbliss18 chrisbliss18 is offline Offline
Posting Shark

Re: GW Basic running on WIndows 2000/XP

  #4  
Dec 15th, 2005
Try the following.
  • Download this file.
  • Create a folder for qBasic somewhere (such as C:\qbasic) and place the downloaded file there
  • Open a command prompt, navigate to the folder that you placed the file in, and run the program. After the program runs, you will have qBasic installed on your machine.
  • Run qBasic as you would normally.
Does this help you?
Did we help you? Did we miss the point entirely? Update your thread and let us know.
Don't like the answers you are getting?
Did you try searching?
Clean up and optimize Windows 2000/XP
Reply With Quote  
Join Date: Dec 2005
Posts: 3
Reputation: kire is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kire kire is offline Offline
Newbie Poster

Re: GW Basic running on WIndows 2000/XP

  #5  
Dec 15th, 2005
Thanks for your help.

I did what you said. I already had QBasic on the machine I am working on. And, it will run under QBasic. But, I need something to compile it with that way I can just run the .exe's instead of running it under QBasic using the .bas

I hope this makes sense. Any other suggestions?

Thanks again.

Erik

Originally Posted by chrisbliss18
Try the following.
  • Download this file.
  • Create a folder for qBasic somewhere (such as C:\qbasic) and place the downloaded file there
  • Open a command prompt, navigate to the folder that you placed the file in, and run the program. After the program runs, you will have qBasic installed on your machine.
  • Run qBasic as you would normally.
Does this help you?
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: GW Basic running on WIndows 2000/XP

  #6  
Dec 15th, 2005
For that you'll need to find an old copy of MS QuickBASIC 7 somewhere (4.5 might work depending on the language features you used).
That can compile your BASIC programs into DOS 16 bit executables.

And no, noone's going to point you to a download as it's not free software. It's a commercial product that's no longer be sold, but it's still protected under copyright and cannot be distributed.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: Mar 2005
Posts: 97
Reputation: Evenbit is on a distinguished road 
Rep Power: 4
Solved Threads: 2
Evenbit's Avatar
Evenbit Evenbit is offline Offline
Junior Poster in Training

Re: GW Basic running on WIndows 2000/XP

  #7  
Dec 22nd, 2005
One option you can try is to write a script that launches QBasic and loads/runs your program. Check out AutoIt. It will compile to an EXE. Something like the following should work:

$ret = runwait("qbasic yourprg.bas", ... , ... )
while (CPU is present) {some assembly required}
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Legacy and Other Languages Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Legacy and Other Languages Forum

All times are GMT -4. The time now is 9:12 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC