|
Post by Daniel Anderson on Mar 25, 2006 0:36:47 GMT
i'm new to qbasic but new to BASIC itself. i've been using a language called liberty basic for a couple of years. i want to know if qbasic has the ability to write windows(GUI) programs as well as console applications.
|
|
|
Post by earlofqb on Mar 25, 2006 1:24:24 GMT
Quite simply: no. QB was designed before GUI things and can do only console applications.
Longly: yes.
If you wanted to spend the time to do it, you could. After all, Windows 1.0 was written in GW-BASIC (I think). So, if you wanted to spend the years researching how they did it (its a trade secret for the most part) and a good bit of time writing the code; you could do it.
Actually, doing this wouldn't create a GUI app, but merely mimic the GUI and its events. So, its a matter of semantics, but you'll have to be aware of that distinction.
|
|
|
Post by Mikrondel on Mar 25, 2006 22:16:04 GMT
You can create a program within QBasic that has a Graphical User Interface.
You cannot, however, use the Win32 API. Which means no windows, no Windows message queues or events, and a CPU-hogging program.
But you CAN have mouse usage, clickable buttons, multiple text entry fields, even dragabble stuff within a QB program- although not using MS Windows stuff at all. The resolution is limited to 640x480 and 16 colours, unless you do some hardware interrupt tricks (which cause problems on some systems). And it will, as I said, hog the CPU. But it can be done.
|
|