943,490 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Aug 8th, 2003
0

qbasic program under Windows XP

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
joseprados is offline Offline
1 posts
since Aug 2003
Aug 8th, 2003
0

Re: qbasic program under Windows XP

There was another post located here http://www.daniweb.com/forums/showthread.php?t=636 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
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is online now Online
13,645 posts
since Feb 2002
Aug 11th, 2004
0

Re: qbasic program under Windows XP

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
The Beholder is offline Offline
9 posts
since Aug 2004
Feb 9th, 2005
0

Re: qbasic program under Windows XP

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!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
divminds is offline Offline
15 posts
since Feb 2005
Feb 10th, 2005
0

Re: qbasic program under Windows XP

get another school, one that uses something that's remotely modern.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Feb 11th, 2005
0

Re: qbasic program under Windows XP

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)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mrwhy is offline Offline
22 posts
since Feb 2005
Feb 11th, 2005
0

Re: qbasic program under Windows XP

Quote 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!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mrwhy is offline Offline
22 posts
since Feb 2005
Feb 11th, 2005
0

Re: qbasic program under Windows XP

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!!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
divminds is offline Offline
15 posts
since Feb 2005
Feb 14th, 2005
0

Re: qbasic program under Windows XP

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
divminds is offline Offline
15 posts
since Feb 2005
Feb 15th, 2005
0

Re: qbasic program under Windows XP

Quote 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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mrwhy is offline Offline
22 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Legacy and Other Languages Forum Timeline: Program to automatically convert from C++ to matlab?
Next Thread in Legacy and Other Languages Forum Timeline: Programming FAQ v2.0.1!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC