Search found 3525 matches

by MrSwiss
Sep 17, 2020 22:34
Forum: Documentation
Topic: Wiki improvements
Replies: 483
Views: 92202

Re: Wiki improvements

(I think there are other procedures of the form 'fb_xxx' which are directly accessible but not documented because not really necessary for the user). Sorry but I beg to differ, on the statement: "... because not really necessary for the user". I prefer my own judgement when it com...
by MrSwiss
Sep 15, 2020 2:52
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 956
Views: 197867

Re: MiniB3d for FreeBasic

How do I install a Library to FBIDE? Sorry, but the question is 'all wrong'. Libraries are installed into the Compiler-Tree (FBC's file structure) and not any IDE. E.g.: you have FBC (64 bit) in C:\FreeBASIC\fbc.exe (and more files) then Libraries go to C:\FreeBASIC\lib\win64\ (..\win32\ for 32 bit...
by MrSwiss
Sep 13, 2020 20:41
Forum: Beginners
Topic: Allegro on new installation
Replies: 3
Views: 164

Re: Allegro on new installation

@crylex, welcome to the forum.

All external libraries must be downloaded seperately from fbc's distribution.
Only the necessary .bi files (basic include) are part of the distribution itself.
(indepedent of static (*.a) or dynamic (*.dll/*.so))
by MrSwiss
Sep 12, 2020 14:10
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 201
Views: 16447

Re: FreeBASIC 1.08 Development

Sorry fxm, the question is to coderJeff (and/or developers) ...
by MrSwiss
Sep 12, 2020 14:01
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 201
Views: 16447

Re: FreeBASIC 1.08 Development

Speaking of arrays... There was something that had to be fixed with ERASE and arrays passed to procedures. I can't find the test case, and I don't think it was logged as a bug report. This was one of the reasons we changed the internal array descriptor, but I don't think this change was ever made. ...
by MrSwiss
Sep 10, 2020 15:42
Forum: General
Topic: USER TYPE ISSUE
Replies: 12
Views: 194

Re: USER TYPE ISSUE

If you are having type definition in a .bi and type initialization in another .bi then the order in which the .bi's are included becomes important (otherwise error). I don't understand the 'Editor claim' with 'autocomplete' at all. You have to supply the code that initializes the type (or type array...
by MrSwiss
Sep 10, 2020 14:44
Forum: General
Topic: USER TYPE ISSUE
Replies: 12
Views: 194

Re: USER TYPE ISSUE

Sorry, but the supplied information is just to skimpy (not enough) to make sense.
All those type definitions are currently unknown ... ctor/dtor/operators e.t.c.
by MrSwiss
Sep 09, 2020 21:31
Forum: Beginners
Topic: Getting UDTs from the RAM buffer
Replies: 12
Views: 204

Re: Getting UDTs from the RAM buffer

fzabkar wrote:There are many times when I wish to Get a binary String which contains 0x00 characters.

FB's String (a type in fact) is the only one that allowes Chr(0) inside the string data (also Null terminated).
ZString and/or WString cannot accept Chr(0) because it is treated as terminator.
by MrSwiss
Sep 09, 2020 19:34
Forum: Beginners
Topic: Getting UDTs from the RAM buffer
Replies: 12
Views: 204

Re: Getting UDTs from the RAM buffer

The way you are going about it is a 'stony road' (the Any Ptr, that is). If you use a UDT Ptr instead, things become quite simple: ' static initialized type (for this DEMO only!) Type UDT_t ' size FBC64 = 32, FBC32 = 20 As ULong id = 1 As ULong slen = 4 As String info = "test" End Type Typ...
by MrSwiss
Sep 09, 2020 19:25
Forum: Beginners
Topic: Select Case expressions
Replies: 7
Views: 253

Re: Select Case expressions

I was wondering whether separate lines, or the numerical order of the constants, affected the optimisation of the jump table. No, it doesn't. Since you'll not know which constant is called the most. The jump table itself optimizes the Select Case [As Const] statement. BTW: max. size of jumptable is...
by MrSwiss
Sep 09, 2020 14:31
Forum: Beginners
Topic: Select Case expressions
Replies: 7
Views: 253

Re: Select Case expressions

What about this? More than one 'case' on the same line: Select Case As Const bfilptr[i] Case 10, 32, 46 ' do nothing Case 35 : bfilptr[i] = 59 Case 48 To 64 : bfilptr[i] -= 6 Case 65 : bfilptr[i] = 32 Case 66 : bfilptr[i] = 63 Case 99 To 255 : bfilptr[i] -= 5 Case Else : bfilptr[i] -= 9 End Select
by MrSwiss
Sep 08, 2020 14:38
Forum: Tips and Tricks
Topic: Fast Counter-Based RNG (2020)
Replies: 3
Views: 112

Re: Fast Counter-Based RNG (2020)

@Joshy, thanks for the link it's certainly a interesting read (latest version 2019).

B.Widynski mentions it as a 'source of inspiration' to make SquaresRNG among other authors.
He claims that Squares is about twice as fast as Philox (part of 'random123' lib).
by MrSwiss
Sep 08, 2020 1:45
Forum: Tips and Tricks
Topic: Fast Counter-Based RNG (2020)
Replies: 3
Views: 112

Fast Counter-Based RNG (2020)

Found this brand new PRNG from Bernard Widynski, published 2020-05-04 (second version). Translated it to FB ... original code below: ----------------------------------------------------------------- Squares: A Fast Counter-Based RNG by Bernard Widynski, 2020-05-04 PDF download and more ... : https:/...
by MrSwiss
Sep 07, 2020 0:02
Forum: General
Topic: Object oriented programming or 3d graphics?
Replies: 11
Views: 346

Re: Object oriented programming or 3d graphics?

IvanisIvan wrote:Thank you! Do you know if any library exists?

No, not straight away.
Some guys here, manage 3D look-alikes with the 2D libraries, too.
(Search: Tips & Tricks section for examples)
by MrSwiss
Sep 06, 2020 23:47
Forum: General
Topic: Object oriented programming or 3d graphics?
Replies: 11
Views: 346

Re: Object oriented programming or 3d graphics?

See FB-Manual/Programmers Manual -- OOP: https://www.freebasic.net/wiki/ProPgObjectRtti

Built-in FBGFX is 2D only, you'll probably need a external lib for true 3D.

Go to advanced search