Search found 3590 matches

by MrSwiss
Nov 27, 2020 17:10
Forum: Beginners
Topic: Trying to get started again . . .
Replies: 13
Views: 326

Re: Trying to get started again . . .

cavelamb wrote:Will do - as soon as I get this mid string silliness rolling.

It's all in the 'language reference' part of FB-documentation: FBWiki : KeyPgMidfunction
by MrSwiss
Nov 26, 2020 2:09
Forum: General
Topic: When to use Integer and when not to
Replies: 23
Views: 480

Re: When to use Integer and when not to

If you're incapable of making sense of well documented code, then I'm forced to feel sorry for you.
(probably didn't understand anything at all, or failed to read it carefully enough)
by MrSwiss
Nov 25, 2020 17:39
Forum: General
Topic: When to use Integer and when not to
Replies: 23
Views: 480

Re: When to use Integer and when not to

Show me one example where, in 32-bit code, an integer takes 64 bits. Got it the 'wrong way around' as seems to be 'on purpose' always (and, definitely NOT funny!). The far better question whould be: where is an U/Integer used with only 32 bits of 'pay load' in FBC64. See: <FBC dir>/fbc-int/array.bi...
by MrSwiss
Nov 19, 2020 17:11
Forum: Beginners
Topic: [HELP] KNN code doesn't work
Replies: 68
Views: 2374

Re: [HELP] converting KNN code from python to FB

ron77 wrote:you mentioned "linked-lists" can you give an example of such data structure?
Hi ron77,
before deciding on a specific data-structure, check their advantages vs. disadvantages at:
Wikipedia (linked list), to allow for a informed decision.
by MrSwiss
Nov 19, 2020 2:57
Forum: General
Topic: Split 8bit in 4bit
Replies: 26
Views: 630

Re: Split 8bit in 4bit

Simply to show, in how many different ways, one can obtain the same result.

The various methods have their strengths and weaknesses ... (once, few, multiple, many times).
by MrSwiss
Nov 18, 2020 21:53
Forum: General
Topic: Split 8bit in 4bit
Replies: 26
Views: 630

Re: Split 8bit in 4bit

@dodicat, your code deals with Bytes and Short (NOT byte split into Nibbles). A Nibble is a 'half-Byte' (aka: 4 bits): ' nibbles_and_bytes.bas -- (c) 2020-11-18, MrSwiss Randomize For i As UInteger = 0 To 999 Rnd() : Rnd() : Rnd() : Rnd() : _ Rnd() : Rnd() : Rnd() : Rnd() Next #Define mkUB(l, h) (h)...
by MrSwiss
Nov 18, 2020 19:15
Forum: General
Topic: Split 8bit in 4bit
Replies: 26
Views: 630

Re: Split 8bit in 4bit

Proof of concept (of fxm's statement): ' bits_and_bytes.bas -- (c) 2020-11-18, MrSwiss ' ' SizeOf() returns in: number of byte ' Print "Variable", "Byte's", "bit's" : Print Print "UByte size: "; SizeOf(UByte), SizeOf(UByte) * 8 Print "UShort size: ";...
by MrSwiss
Nov 16, 2020 14:46
Forum: Beginners
Topic: [HELP] KNN code doesn't work
Replies: 68
Views: 2374

Re: [SOLVED] converting code from python to FB

IT'S FUNNY HOW YOU GUYS TELL ME TO READ THE DOCUMENTION OF FB YET AT THE SAME TIME DON'T BOTHER TO PROPERLY READ DITAILS IN POSTS I fully agree with the "don't bother with the details" part of your sentence. I whould like to stress something thats a bit more to the point: - posts are read...
by MrSwiss
Nov 12, 2020 23:46
Forum: Hardware Interfaces / Communication
Topic: Try to use inpout32.dll
Replies: 49
Views: 1578

Re: Try to use inpout32.dll

Hi Dan, first and foremost: I've never needed INP/OUT for serial communications ... they're outdated. (I'm pretty certain that they're only kept for the DOS version of FBC.) 1) Regarding the Hghrez drivers, does anyone have proof they work on Windows 10, using FBC 1.06 or 1.07? Well, I've not tried ...
by MrSwiss
Nov 12, 2020 14:57
Forum: Hardware Interfaces / Communication
Topic: Try to use inpout32.dll
Replies: 49
Views: 1578

Re: Try to use inpout32.dll

INP and OUT do NOT work, except, in the DOS version of FBC. It depends on the operating system (OS) to allow/disallow direct hardware (HW) access. Multitasking OS's like WIN/LIN don't allow direct HW access. Therefore, a driver is mandatory. The .dll itself (without the driver being installed) is u...
by MrSwiss
Nov 11, 2020 17:39
Forum: Community Discussion
Topic: Where can I get a Recent-Git-Build of FreeBASIC?
Replies: 487
Views: 82368

Re: Where can I get a Recent-Git-Build of FreeBASIC?

Build system seems to be broken. Last builds (except FreeBSD32) are from: 2020-11-01.
Not certain about the doc build: 2020-11-02 (last).
by MrSwiss
Nov 10, 2020 18:07
Forum: General
Topic: Strange error reporting with threadcall
Replies: 10
Views: 353

Re: Strange error reporting with threadcall

@Mrswiss You will never change...... Why on earth should I change a very successful strategy of 'debugging' code??? It's logical, as well as practically oriented pragmatism. Doing things in a step by step way (major problem first). "et voila" all the minors have vanished, too. (not necess...
by MrSwiss
Nov 10, 2020 17:01
Forum: General
Topic: Strange error reporting with threadcall
Replies: 10
Views: 353

Re: Strange error reporting with threadcall

The fact remains that, as soon as the first 'coding error' has been made:
the following 'error messages' are at times 'misleading'.
Because of that 'erratic' compiler behavior, I typically dismiss then entirely.

First message states: SUB expected ... (which seals the deal, so to speak).
by MrSwiss
Nov 10, 2020 16:39
Forum: General
Topic: Strange error reporting with threadcall
Replies: 10
Views: 353

Re: Strange error reporting with threadcall

Well, the only 'alowed' procedure type for a thread is a SUB, according to the docs.
(the only alowed parameter is a Any Ptr, to further complicate matters)

Therefore, I fail to see what you call 'strange'.
by MrSwiss
Nov 06, 2020 16:34
Forum: General
Topic: APPEND does not work on very large files? (Solved: it does, other problem)
Replies: 16
Views: 429

Re: APPEND does not work on very large files? (Solved: it does, other problem)

You appear to be one of those people that always wants to emotionalize technical things. (people running out of real arguments are prone to do that, as a "last ditch" effort) That "personal attack" thing, you seem to cultivate ... If a design is unlikely to deliver "as expec...

Go to advanced search