Qbasic, Quickbasic/qbasic

Advertisement


Question
Hi Alex, Me again.
Thanks for your help so far.
I have your code up and running.
The reason I tried it was that the two
mouse programmes I had caused my computer to freeze.
Unfortunately so dose the code you have supplied.
I am running windows XP but run QB in 95 mode.
Is there anything else I could try as I like to include
both keyboard and mouse controls in my programmes.

Hope you can help.
Bill.


Answer
Hey, Bill,

A thought just occured to me, this may not help though, but in the UDT for RegType, there is a "es" and "ds" variable defined at the end - get rid of those, then try.  That is just a shot in the dark, and I don't know if it will work.

My next suggestion will be using DosBOX - Windows does not have great support for old DOS applications, but DosBOX should run it with no issue.
If this doesn't help, try downloading QBasic4.5, then creating this batch file:

@ECHO OFF
mouse.com
qb.exe /h

That enables a DOS mouse driver (mouse.com), but I don't think it comes with QBasic 1.1 :(

Let me know what works

- Alex

Qbasic, Quickbasic

All Answers


Answers by Expert:


Ask Experts

Volunteer


Alex Barry

Expertise

I have been a qbasic programmer since 2000, creating games, minor libraries and various small programs. I have experience using interrupts, graphics, file input/output, the mouse cursor, and using libraries. I have also learned FreeBASIC, QB64, c/c++, python, lua, php and html.
I do not claim to be an absolute authority in any language, but I don't mind looking things up and learning with you.

Experience

I have been programming in *Basic dialects since 2000, as mentioned in my expertise. After a year of QBasic, I learned C and C++, and dabbled a little in ASM (I don't program in ASM - I literally just played around to see how things work). When QB64 and FreeBASIC were released, I played with those languages. At the time, FreeBASIC offered more functionality and I sided with that language for a while. During that time, while I was learning new languages, that I would see what scripting languages are available, where I took up python and lua. I started to notice a staleness to QB64's development (which I kept tabs on from time to time), and am now trying to be active in it's community and maybe in it's development in the future. Currently, I am only active on the QB64.net forums, but I appear on occasion on FreeBASIC.net's forums as well.

Education/Credentials
Highschool - 2007

©2012 About.com, a part of The New York Times Company. All rights reserved.