Search found 402 matches

by integer
Sep 16, 2007 13:55
Forum: Beginners
Topic: 256 base division
Replies: 24
Views: 6659

@ anonymous1337 & @ badmrbox I cannot get UBYTE & USHORT to work as expected: Could you tell me what must be done to get the expected results? ALL of the variable types, except ubyte & ushort, work as expected. I have tried several routes, but it will not do what I want, so I worked aro...
by integer
Sep 15, 2007 5:24
Forum: Beginners
Topic: 256 base division
Replies: 24
Views: 6659

yetifoot stated: I am not sure what you mean by "base 256 division" Neither do I, since your formula is multiplication. I have never seen a number system (any BASE) that does not have zero as a valid remainder. Please, explain how you are using this. The subject is "256 base" how...
by integer
Aug 12, 2007 4:36
Forum: Sources, Examples, Tips and Tricks
Topic: Line Intersection Algo.
Replies: 12
Views: 3765

Your cited source states this: m2 = (float)1e+10; // close enough to infinity yours should probably use the equivalent m2 = 1e+10 /' close enough to infinity '/ Also, your source has this comment: // use Kramers rule to compute xi and yi old Gabe Cramer, a brilliant swiss math man, sometime around 1...
by integer
Jul 27, 2007 0:07
Forum: General
Topic: Hard Sequence Question
Replies: 12
Views: 3335

I'm trying to make a function that given k and n it will generate a sequence k elements long and return the nth term. The rules for the sequence are simple: The summation of all of the elements in the sequence must equal 100. Assume k and n are real integers and that k > 0 and 0 < n <= k. for: k=4 ...
by integer
Jul 16, 2007 20:06
Forum: General
Topic: Ball collisions
Replies: 36
Views: 7944

commented out: OPTION EXPLICIT added "AS INTEGER" after the first DIM results: Command executed: "C:\FreeBASIC\fbc.exe" "C:\FB\bounce1.bas" Compiler output: C:\FB\bounce1.o:fake:(.text+0x43a): undefined reference to `fb_GetMouse@20' Results: Compilation failed System: F...
by integer
Jun 24, 2007 16:54
Forum: Beginners
Topic: Trouble with Bload
Replies: 16
Views: 3866

The code for the loop counter has this: Dim front As Integer Dim Shared front As Integer 'counter for alien explosion Dim front As Integer When using fbc v.18 this occurs: Compiler output: error 4: Duplicated definition, front in 'Dim Shared front As Integer 'counter for alien explosion' error 4: Du...
by integer
Jun 22, 2007 17:03
Forum: General
Topic: Line Input, Eof() – linefeed weird bug?
Replies: 8
Views: 3529

differences: s=746 val(s)=746 j=820 s=747 val(s)=747 j=821 s=748 val(s)=748 j=822 s=749 val(s)=749 j=823 s=750 val(s)=750 j=824 s=750 val(s)=750 j=825 s=751 val(s)=751 j=826 s=752 val(s)=752 j=827 s=753 val(s)=753 j=828 s=754 val(s)=754 j=829 s=755 val(s)=755 j=830 s=756 val(s)=756 j=831 s=757 val(s...
by integer
Jun 12, 2007 17:14
Forum: Beginners
Topic: Crosswords maker.
Replies: 25
Views: 6904

Do anyone know of a dictionary that is available for download? Several years back, I found a reference to a list, but it stated something to the effect that the only dictionary available & free from serious copyright restrictions was published around 1915, or during WWI. I have found several onl...
by integer
Jun 08, 2007 7:00
Forum: General
Topic: Bounce-bar directory routine?
Replies: 2
Views: 1552

The following is part of some routines that I use. Most of the code has been borrowed, but, from whom I cannot say. I would be glad to attribute it to the originators, but my documentation is not adequate to the task. (I do not keep detail notes). #include "windows.bi" sub GetAvailableDriv...
by integer
Jun 05, 2007 15:04
Forum: Beginners
Topic: How to get 80x50 text screen?
Replies: 1
Views: 1111

How to get 80x50 text screen?

From the xp desktop, when I double click the FreeBasic icon, I get a full screen console text 80 char x 50 lines. However, I am unable to get that resolution when using freebasic's screen mode, screen res. screen MODE 17 (from the Help tab) indicates a resolution of 80x25 or 80x50 is available. When...
by integer
May 27, 2007 15:41
Forum: General
Topic: What is an "UNDEFINED REFERENCE" ?
Replies: 14
Views: 3503

THANKS TO ALL.

I declared the subs and I created the SUB,
and placed them in my library.

BUT
the multi-line comment feature caused all of my brilliant work to be ignored.

There ought to be a law against inattentiveness.
I feel terrible about making such a blunder.
by integer
May 26, 2007 6:57
Forum: General
Topic: What is an "UNDEFINED REFERENCE" ?
Replies: 14
Views: 3503

What is an "UNDEFINED REFERENCE" ?

I do not know what the compiler output actually means. Command executed: "C:\FreeBasic\fbc.exe" "C:\FB37\May25.bas" -ex Compiler output: C:\FB37\May25.o:fake:(.text+0x1351): undefined reference to `STATIONOFFSET@40' C:\FB37\May25.o:fake:(.text+0x560e): undefined reference to `STA...
by integer
Apr 25, 2007 19:45
Forum: General
Topic: RSET will freeze my system with hex value FE1
Replies: 5
Views: 1848

Thanks D.J.

Removal of the fixed length prints a blank field.
If I define the variable: HexNum = " "
just before the RSET then it works perfectly.

Why would the fixed length (dim hexnum as string * 6) definition
cause a problem. It just doesn't make sense.

again, thanks.
by integer
Apr 25, 2007 15:37
Forum: General
Topic: RSET will freeze my system with hex value FE1
Replies: 5
Views: 1848

RSET will freeze my system with hex value FE1

On my system this will compile and run: ''RSET-ERR.bas DIM mpf AS INTEGER DIM nn AS INTEGER DIM i AS INTEGER DIM TabLeft AS INTEGER DIM TabRight AS INTEGER DIM ByteCount AS INTEGER DIM ab AS STRING * 16 DIM HexAdr AS STRING * 6 DIM gx AS STRING DIM hx AS STRING DIM cc AS STRING mpf = FREEFILE OPEN &...
by integer
Apr 22, 2007 10:41
Forum: Beginners
Topic: Binary file record pointer
Replies: 2
Views: 1476

solved

nevermind.

I found what I was looking for:
SEEK LOC