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 391,556 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 2,664 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:
Views: 33909 | Replies: 18
Reply
Join Date: Aug 2003
Posts: 1
Reputation: joseprados is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
joseprados joseprados is offline Offline
Newbie Poster

Solution qbasic program under Windows XP

  #1  
Aug 8th, 2003
I have the following problem:

2 years ago I did a Qbasic program which calculated a graphic, show this graphic on the screen and then the graphic is sended to Printer.

The statement I used was << SHELL "prtscr.exe" >> where ptrscr.exe y a program which capture the screen and send the data screen to the Printer. Now, under Windows XP the program does not work and I donīt know why? I was thinking about updating the DOS command Graphics Graphic but I donīt know if it is in Windows XP.

Another thing I would like to know is how can I decompile the Turbo Pascal "printscr.exe" program in order to implement it in qbasic.

Thank you
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,879
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 106
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: qbasic program under Windows XP

  #2  
Aug 8th, 2003
There was another post located here http://www.daniweb.com/forums/thread636.html regarding the same question. It turns out that QBASIC is a 16-bit language, just like Windows 3.1 was. Windows 95 and above were 32-bit with 16-bit support. Starting with Windows XP, however, Microsoft has decided to strip the 16-bit support. Therefore, your Qbasic programs unfortunately won't be able to run in WindowsXP. The only option, unfortunately, is to perhaps migrate over to Visual Basic 6 or Visual Basic.NET
Reply With Quote  
Join Date: Aug 2004
Posts: 9
Reputation: The Beholder is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
The Beholder The Beholder is offline Offline
Newbie Poster

Re: qbasic program under Windows XP

  #3  
Aug 11th, 2004
I have nearly no problem using qbasic in win xp, I simply load command prompt then qb.exe, and occassionaly it would freeze up, but since I changed the memory 'properties' of qb.exe to allow protected memory it works just fine, I can't see why you have a problem.
Reply With Quote  
Join Date: Feb 2005
Posts: 15
Reputation: divminds is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
divminds divminds is offline Offline
Newbie Poster

Re: qbasic program under Windows XP

  #4  
Feb 9th, 2005
I have this EXACT same problem. I'd like to know what you changed in the memory properties to allow the program to work. I need to use this qbasic program for a school project. Your input would be greatly appreciated. Thanx!
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,646
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: 191
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: qbasic program under Windows XP

  #5  
Feb 10th, 2005
get another school, one that uses something that's remotely modern.
Reply With Quote  
Join Date: Feb 2005
Posts: 22
Reputation: mrwhy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
mrwhy mrwhy is offline Offline
Newbie Poster

Re: qbasic program under Windows XP

  #6  
Feb 11th, 2005
The problem arose in Mid Nov last when Gates (probably without asking you) downloaded a "fix" that (among other things) killed off your BASIC progs for good.

If you were lucky enough to miss this download, the stop ALL downloads now and your basic will continue to run (except in graphics screen 13)
Reply With Quote  
Join Date: Feb 2005
Posts: 22
Reputation: mrwhy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
mrwhy mrwhy is offline Offline
Newbie Poster

Re: qbasic program under Windows XP

  #7  
Feb 11th, 2005
Originally Posted by jwenting
get another school, one that uses something that's remotely modern.


I am very sorry for you!
And if you really want to go crazy, try Visual Basic - which does nothing Basic didn't do but enmeshes you in a inextricable web of jargon-nonsense to do it!
Reply With Quote  
Join Date: Feb 2005
Posts: 15
Reputation: divminds is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
divminds divminds is offline Offline
Newbie Poster

Re: qbasic program under Windows XP

  #8  
Feb 11th, 2005
Thank you very much mrwhy and cscgal for your input. I've told my teacher about it and he and I are going to either work around it or use it as an idea to customize windows xp and put in 16-bit again as a project. Once again Thank you very much!!!
Reply With Quote  
Join Date: Feb 2005
Posts: 15
Reputation: divminds is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
divminds divminds is offline Offline
Newbie Poster

Re: qbasic program under Windows XP

  #9  
Feb 14th, 2005
THERE!!! Under recent study one member on this site suggested using DOSBox. I've combined both DOSBox-0.63 and QBasic 4.5 together to create QBasicXP. It works PERFECTLY! I have only one problem with it. The help file that tells u the codes is not working but as long as u know the codes or if u can get a tutorial from somewhere else you will be fine. Here is the link

QBasicXP
Reply With Quote  
Join Date: Feb 2005
Posts: 22
Reputation: mrwhy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
mrwhy mrwhy is offline Offline
Newbie Poster

Re: qbasic program under Windows XP

  #10  
Feb 15th, 2005
Originally Posted by joseprados
I have the following problem:

2 years ago I did a Qbasic program which calculated a graphic, show this graphic on the screen and then the graphic is sended to Printer.

The statement I used was << SHELL "prtscr.exe" >> where ptrscr.exe y a program which capture the screen and send the data screen to the Printer. Now, under Windows XP the program does not work and I don?t know why? I was thinking about updating the DOS command Graphics Graphic but I don?t know if it is in Windows XP.

Another thing I would like to know is how can I decompile the Turbo Pascal "printscr.exe" program in order to implement it in qbasic.

Thank you

See my new thread "How to run Qbasic and Dos under windows XP
Reply With Quote  
Reply

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

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Legacy and Other Languages Marketplace
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:41 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC