Search found 458 matches

by j_milton
Mar 12, 2010 21:41
Forum: Beginners
Topic: Works in vista 32 homeP, but not XP home 32
Replies: 4
Views: 1136

more info please

when you say not working what do you expect it to do that it is not doing?

The code is kind of "nasty" in a few places, but it seems to "work" for me on XP without modification when compiled this way:

fbc -lang deprecated -s gui somefilename.bas

using version 0.20.0 of the compiler
by j_milton
Mar 01, 2010 10:09
Forum: General
Topic: Console double-buffering/paging -- how?
Replies: 4
Views: 908

Another approach

here is something I've been working on that may be helpful. To use it save as "console.bas" ' a pseudo double buffering utility for console mode #Define black 0 #Define blue 1 #Define bright_blue 9 #Define green 2 #Define bright_green 10 #Define cyan 3 #Define red 4 #Define bright_red 12 #Define mag...
by j_milton
Mar 01, 2010 5:14
Forum: General
Topic: Bug in "Width" in console mode? (updated)
Replies: 0
Views: 655

Bug in "Width" in console mode? (updated)

Compiled the following program in console mode in Windows XP. Width 80,1 Print "foo"; Cls Print"bar"; Sleep Should get a 1 line window with text "bar", instead get a 1 line window with "foobar", i.e. the Cls never happens Obviously found this while trying something much more comp...
by j_milton
Feb 27, 2010 13:13
Forum: Beginners
Topic: preventing resize of console window? (Solved)
Replies: 4
Views: 921

Thanks for your prompt assistance! "Width" is a "good enough" fix for my issue. Window can still be resized down but another call to width and then reprinting the screen content forces it large again, and the vertical slider disappears. Sadly the docs for the width function say its not portable to l...
by j_milton
Feb 27, 2010 2:44
Forum: Beginners
Topic: preventing resize of console window? (Solved)
Replies: 4
Views: 921

preventing resize of console window? (Solved)

I'm writing a program in "console" mode in windows using the text screen When the program runs the default window size is 80 chars by 25 rows, this is just fine. What I'd like to be able to prevent is the user resizing the window, width or height, larger or smaller, other than minimizing it complete...
by j_milton
Feb 12, 2010 6:35
Forum: General
Topic: Runaway code
Replies: 4
Views: 973

this rewrite still has some issues but you may find it helpful Dim f As integer ' Frequency of cabinet resonance Dim A As Single ' Area of port in square inches Dim V As Single ' Volume of cabinet in cubic inches Dim Vol As Single ' Preliminary Volume in cubic inches before corrections Dim hi As Sin...
by j_milton
Feb 12, 2010 5:23
Forum: Windows
Topic: How can I speed up this program?
Replies: 17
Views: 3117

I'm betting that agamemnus has ripped all of his hair out by now (if "he" and if he had any to start with). The OP problem is still ill-defined (I'm being polite). There is no sample to address (not just the target, not even a sample). The target is an html file which (as I said) worries me. Let's ...
by j_milton
Feb 11, 2010 18:07
Forum: Windows
Topic: How can I speed up this program?
Replies: 17
Views: 3117

Do you expect most of the sentences in the file to be unique? If so then maybe something like this,Assuming there is a known delimiter between sentences i.e. the [.] Traverse the raw file, finding each sentence using the end of sentence delimiter. For each sentence add an entry to a table "T" contai...

Go to advanced search