Search found 1647 matches

by angros47
May 06, 2020 19:05
Forum: Libraries
Topic: IUP GUI lib (Win/Lin) getting started
Replies: 13
Views: 976

Re: IUP GUI lib (Win/Lin) getting started

Freebasic can use some C++ features directly, with no wrapper.

Also, for pure C interface there is xforms
by angros47
May 05, 2020 20:28
Forum: Tips and Tricks
Topic: FLTK GUI without C wrapper
Replies: 6
Views: 800

FLTK GUI without C wrapper

I tried it on Linux 32 bit, with FLTK 1.3.5. So far, it seems to work (at least, the demo produces a window with a button). I haven't translated all the headers, yet, and the files I have translated are still incomplete, but at least it shows that it should be possible to use FLTK (a C++ library) un...
by angros47
May 04, 2020 15:58
Forum: Community Discussion
Topic: FreeBASIC and C++ interop current status?
Replies: 15
Views: 970

Re: FreeBASIC and C++ interop current status?

Personally, I am trying translating at least in part the FLTK headers from C++ to FreeBasic, and so far, they seem to work (linux 32 bits). The main difference is that, since FreeBasic doesn't support inlining, methods that are implemented directly in the header can't be supported in the same way. S...
by angros47
Apr 30, 2020 17:35
Forum: Linux
Topic: Multi-call binary in FreeBasic
Replies: 3
Views: 450

Multi-call binary in FreeBasic

Multi-call binaries are used, under Linux, for several system utilities, to reduce disk space usage. For example, let's take the linux utilities "diff" and "cmp": they both perform a similar task (comparing two files), likely most of the binary code is identical, there is no need...
by angros47
Apr 30, 2020 16:36
Forum: Tips and Tricks
Topic: fast sine and fast cosine
Replies: 14
Views: 810

Re: fast sine and fast cosine

If you want a very fast way to get sine and cosine, you can just pre-calculate a lookup table, with the desired precision (in the software midi synthesizer used in my sound library that solution is used)
by angros47
Apr 28, 2020 19:07
Forum: Community Discussion
Topic: Could someone make a list of FreeBASIC GUI libraries/frameworks?
Replies: 166
Views: 6679

Re: Could someone make a list of FreeBASIC GUI libraries/frameworks?

Qt is ported to HaikuOS so what's to do with that? HaikuOS is not an operating system officially supported by FreeBasic. DOS is If you don't want the wrapper just use Iup. It's part of FreeBASIC headers. I know there are others widget tools. For example, I ported the headers of XForms to FreeBasic ...
by angros47
Apr 27, 2020 22:41
Forum: General
Topic: Squares
Replies: 8041
Views: 511996

Re: Squares

Yes, there are duplicates.

How can you distinguish 001 from 0010/0011? The decompressor doesn't know in advance if it must read three bits or four, and if the first three bits are 001, how can it know if it has to read the fourth bit or not?
by angros47
Apr 27, 2020 22:18
Forum: Community Discussion
Topic: Could someone make a list of FreeBASIC GUI libraries/frameworks?
Replies: 166
Views: 6679

Re: Could someone make a list of FreeBASIC GUI libraries/frameworks?

FLTK is also one of the few GUI libraries that have been ported to DOS as well, so it is the most multiplatform of all of them. What annoys me is that it requires a wrapper (that is a dynamic library, and that means it introduces a dependency). Also, it doesn't allow to use the library in OOP, despi...
by angros47
Apr 27, 2020 20:41
Forum: General
Topic: Squares
Replies: 8041
Views: 511996

Re: Squares

Sequence 0010011 should be decompressed as 00-1-00-11 or as 00-10-01-1?
by angros47
Apr 26, 2020 22:47
Forum: Tips and Tricks
Topic: fbgfx versus opengl graphics
Replies: 25
Views: 2421

Re: fbgfx versus opengl graphics

Since I developed the patch, I perhaps can answer about the autosync option: it allows OpenGL mode to work with no need to send the "flip" command to update the screen, so it will work like regular mode. Unfortunately, it also prevents using OpenGL commands, because the rendering happens i...
by angros47
Apr 25, 2020 14:36
Forum: DOS
Topic: ISR + coroutines = Multitasking in DOS
Replies: 3
Views: 1411

ISR + coroutines = Multitasking in DOS

Yes, multitasking, not just multithreading. To compile it, you also need the coroutine subroutines that you can find here: https://freebasic.net/forum/viewtopic.php?f=17&t=28417 It will run a normal dos console, but at the same time the freebasic program (the DO...LOOP cycle in the subroutine &q...
by angros47
Apr 23, 2020 16:40
Forum: Tips and Tricks
Topic: ON TIMER equivalent using signals
Replies: 1
Views: 301

ON TIMER equivalent using signals

FreeBasic doesn't have the instruction ON TIMER that the old QBasic used to simulate interrupts (it was very limited, but useful). Since FreeBasic supports multiple threads, much more advanced solutions are available, and one should not miss the old trick. Still, with POSIX signals (that are more or...
by angros47
Apr 21, 2020 23:45
Forum: General
Topic: Squares
Replies: 8041
Views: 511996

Re: Squares

albert wrote:So it might be difficult to tell if the input was 7 or 8 bits...???


It's just impossible. How can you tell if it was 7 bit, or 8 bit with the first one set to 1?
by angros47
Apr 21, 2020 22:59
Forum: General
Topic: Squares
Replies: 8041
Views: 511996

Re: Squares

No, it can't be undone.

Go to advanced search