Search found 132 matches

by Antoni
Tue May 06, 2008 4:04 pm
Forum: Freebasic Questions & Answers
Topic: Interactive shell for trayning FreeBasic ?
Replies: 2
Views: 23630

Python or QBasic have an inmediate mode because they are interpreters. FreeBASIC is a compiler only. The Quick Run found IDEs as FBIde or FBEdit is the closest you can do with a compiler. Cons: It is not like inmediate mode where variables are kept available for the next command you type. In a compi...
by Antoni
Tue May 06, 2008 3:50 pm
Forum: Freebasic Questions & Answers
Topic: Some questions
Replies: 5
Views: 30632

1.- FreeBASIC has a built-in multikey as those found in QB libraries. 2.-You can emulate ON-TIMER using a background thread. See code .This solution won't compile for DOS... 3.- FB can write to port to $330 if your present compiler can do it. But this is not likely to work in other people's soundcar...
by Antoni
Wed Sep 19, 2007 2:38 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: If you hate QB GUIs look away.
Replies: 8
Views: 17990

Hi, Mac: Fun500 was certainly made in QB4.5, so it will not work in QBasic. The last known QB-GUI demo that worked in QBasic was Windoze, done ten years ago: http://www.qbasicnews.com/abc/showsnippet.php?filename=GRAPHICS.ABC&snippet=430 It's a Postit zipped file. To run it cut and paste the cod...
by Antoni
Wed Sep 19, 2007 2:26 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Crosshairs Question
Replies: 5
Views: 10550

You could use a flag to see if coords have changed and redraw the crosshairs only when they move...
by Antoni
Mon Jun 11, 2007 3:43 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: how to view output while program is running
Replies: 5
Views: 14088

Just print everything to screen. If you need after to put it into a file you could redirect the screen when calling the program

myprogram >textfile.txt
by Antoni
Mon Jun 11, 2007 3:34 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Read or write directly from the Hard drive?
Replies: 4
Views: 9205

What you will achieve is to ruin your hard disk and have to format it.
If you really want to try something like that, do it with an unused second drive or a floppy. Never with the drive where your OS is!!
by Antoni
Mon Jun 11, 2007 3:29 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: And how can i get sound form the mic?
Replies: 5
Views: 10882

IIRC Toshi Hori had some source about reading a mike.

http://www.ocf.berkeley.edu/~horie/project.html

Everything there will work only if your sound card is a Sounblaster 16 or you have something else that emulates it
by Antoni
Sat May 26, 2007 9:09 am
Forum: Freebasic Questions & Answers
Topic: FreeBASIC 0.17 is available!
Replies: 0
Views: 16749

FreeBASIC 0.17 is available!

The official release or FreeBASIC 0.17 is out since May 14 Get it at http://www.freebasic.net/forum/viewtopic.php?t=8256 What's new? Here are the most important additions. New -lang command line option -lang qb is designed to compile QB programs, supports GOSUB, ON ERROR, and returns to the default ...
by Antoni
Sun Jan 07, 2007 7:35 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help with Chess Program I am writing
Replies: 13
Views: 23531

You could have edited your first post and updated the code there...
by Antoni
Sun Jan 07, 2007 7:33 am
Forum: QBASIC and QB64 Questions & Answers
Topic: OPEN COM() Problems with Belken USB/Serial adapter...HELP!
Replies: 9
Views: 32371

Nathan is right , I regularly use a FreeBASIC program accessing a serial port thru an USB adapter.
by Antoni
Tue Oct 24, 2006 2:42 pm
Forum: Freebasic Questions & Answers
Topic: freebasic compiling problems
Replies: 7
Views: 24207

You are using the 0.17 unstable version, right? 0.17 has engaged in a new way and it has become very picky about DIMming variables, I can't tell you about labels as i never use them. To recover the QB-friendly behavior add to the command line the new option -lang qb fbc -lang qb mysource.bas This wi...
by Antoni
Wed Sep 27, 2006 2:35 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: what's the point?
Replies: 5
Views: 13412

What's the value returned by point?
by Antoni
Mon Jul 31, 2006 2:53 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Which Library
Replies: 11
Views: 25073

uGL rocks! :D
by Antoni
Mon Jul 24, 2006 2:11 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Need help with circle drawing
Replies: 6
Views: 12811

Code: Select all

SCREEN 12   'or whatever GRAPHICS mode you want to use
CIRCLE (x.y),radius,color
X,Y are pixels from the top left corner of the screen, radius is in pixels too
by Antoni
Mon Jul 24, 2006 1:29 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: help with screen modes QB 7.1
Replies: 5
Views: 11904

The limit depends on the video card memory ant the maximum frequences the card anj the monitor can stand. I have set my jpeg viewer to 1600x1200x256 (I was using a CRT monitor back then, my present TFT device can't stand it) Fumador: The video mode numbers in your snippet are not VESA standard, and ...
by Antoni
Sat Jul 22, 2006 2:14 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: help with screen modes QB 7.1
Replies: 5
Views: 11904

High resolutions did not exist when QB7.1 appeared , so it does not have any built in function to use them. You can use the VESA interrupts and pokes to screen memory to draw pixels to a high resolution screen, but this approach is too slow for games. There are libraries as Future, uGL or Zephir tha...
by Antoni
Sat Jul 22, 2006 2:04 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with future library
Replies: 1
Views: 5822

You must have a .BI search path defined in your PDS (QB7.1) File Path options. Try putting the BI file in one of the folders defined there.
by Antoni
Sat Jul 22, 2006 2:02 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Parallel Port and Signal Generation
Replies: 1
Views: 5715

If you are running QBasic in DOS or in windows 9x you can access the paralel port using OUT and INP from QBasic . If you are running XP or W2000 the OS's will not let you access the parallel port from DOS.

This link may be useful
http://www.lvr.com/parport.htm
by Antoni
Sat Jul 22, 2006 1:57 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: skewed text menus
Replies: 5
Views: 10349

Just write everything to a string then cut it to the right length with left$ before printing it to screen.
by Antoni
Mon Jun 26, 2006 12:04 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Loading More than 1 QLB
Replies: 3
Views: 9422

You can load only one QLB into QB.
IIRC Future Lib comes with an app allowing you to build a custom lib only with the modules you need, there is an option to add QB.QLB to the package.