Search found 3463 matches

by TJF
Jun 10, 2019 12:15
Forum: Projects
Topic: Fb minimal GUI
Replies: 11
Views: 1152

Re: Fb minimal GUI

Hi Luxan! I'm having to assume that libglade is valid on newer distributions ; I'm using Ubuntu 14.04 as the development environment as newer versions don't have a glade that utilizes libglade. libglade is obsolete. There's now support on newer systems. Glade3 doesn't support it any more. Today, it ...
by TJF
Jun 10, 2019 11:53
Forum: Projects
Topic: GladeToBac (Glade to FreeBasic code sketcher)
Replies: 11
Views: 3609

New on GitHub: GladeToBac (Glade to FreeBasic code sketcher)

The source code is now hosted at GitHub. Current version is 3.2.2:
  • ready for 64 systems
  • requires Gtk-3.10 minimum

[Edit]Typo fixed in link.[/Edit]
by TJF
Jun 01, 2019 11:16
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 22
Views: 1306

Re: variadic functions and argument lists in fbc

[Edit] This post is obsolete now, since the previous changed. [/Edit] Hi coderJeff! Your code doesn't compile for STRING and UDTs. This statement is invalid: cptr(byte ptr, @@arg) Do you mean PEEK(BYTE PTR, CPTR(BYTE PTR, @arg)) And what about UDTs with a length smaller or eq...
by TJF
May 31, 2019 14:50
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 22
Views: 1306

Re: variadic functions and argument lists in fbc

Since my Gir headers should work with different fbc versions, I implemented #IF __FB_VER_MAJOR__ >= 1 AND __FB_VER_MINOR__ >= 07 TYPE AS CVA_LIST va_list #ELSE TYPE AS ANY PTR va_list #ENDIF Perhaps similar code is sufficient in crt/stdarg.bi , at least for a certain transition stage. Regards
by TJF
May 31, 2019 14:30
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 22
Views: 1306

Re: variadic functions and argument lists in fbc

Stooooppppp! The linker is searching for 32-bit binaries on a 64-bit system. (I also tried option -arch 64 to no avail.) Please excuse me, my fault! I removed the option -arch 32 from the compile flags, but forgot to remove it from the linker flags. It's compiling and running well with the adaption ...
by TJF
May 31, 2019 14:07
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 22
Views: 1306

Re: variadic functions and argument lists in fbc

In https://github.com/DTJF/gir_headers/blob/master/Gir/_GirToBac-0.0.bi#L21 Try: type as cva_list va_list Unless you already di that, I don't know if that's the only place. Sure, that's the only place. When I adapt that file only I get freebasic/crt/stdarg.bi(12) error 4: Duplicated definit...
by TJF
May 31, 2019 11:51
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 22
Views: 1306

Re: variadic functions and argument lists in fbc

Hi coderJeff, thanks for the anwser! Do you have a freebasic example we can work with? Sure, ie. look at line 253 . You can find similar code in each of the projects objects. The ellipsis allows passing mutiple arguments to _some_action( obj, "PROP1', "VALUE, "PROP2", 123 ). Not ...
by TJF
May 30, 2019 18:57
Forum: Libraries
Topic: Header updates for Gtk-3.0 and others
Replies: 2
Views: 450

Re: Header for Gtk-4.0

Just uploaded an up-date:

* improved GLib and GObject macros
* Gtk-4.0

Gtk-4.0 isn't released yet, but for those who want to test I created experimental headers.

Regards
by TJF
May 29, 2019 20:32
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 374
Views: 55858

Hi Dinosaur! The manual quotes that: The QSRC bits 14 & 15 in QDECCTL register neeeds to be set to 1h for Direction Count mode. However there does not appear to be any way to do that (within the library). io->PwmSS->Conf(_X_)->QDECCTL = ... , where _X_ is the number of the related subsys...
by TJF
May 29, 2019 19:55
Forum: Projects
Topic: Fb minimal GUI
Replies: 11
Views: 1152

Re: Fb minimal GUI

Hi Luxan! Why don't you use GladeToBac in order to auto-generate the main source in a more structured way? And why do you use the external and outdated libglade? Today, all features (and some more) are integrated in GtkBuilder. In order to update your code, you can simply start Glade3 and load your ...
by TJF
May 29, 2019 15:01
Forum: Community Discussion
Topic: variadic functions and argument lists in fbc
Replies: 22
Views: 1306

Re: variadic functions and argument lists in fbc

Hi all! Unfortunately this implementation is not sufficient. CVA_ARG returns the parameter values (a *CPTR(dtype PTR, expr2) ). But more often we need the pointer itself (= returning expr2 ). This is necessary to call functions like void g_object_set_valist (GObject *object, const gchar *fir...
by TJF
May 22, 2019 20:54
Forum: Projects
Topic: GooData: diagrams for screen / printer / files
Replies: 17
Views: 1886

Re: GooData: diagrams for screen / printer / files

So I put GooData on my medium priority todo list :-) I found some time to check the old code. The current GIT version works with the newest gir_headers. And the library build is organised by CMake scripts now. The scripts are using compiler option -arch 32 , so you can compile on a 64 bit system. I...
by TJF
May 21, 2019 21:06
Forum: Projects
Topic: GooData: diagrams for screen / printer / files
Replies: 17
Views: 1886

Re: GooData: diagrams for screen / printer / files

I have problems with getting the 32-bit libs installed on my 64-bit linux. The package manager wants remove libraries went I try install the 32-bit libs. No old 32 bit netbook in any corner? Which I don't like. So I guess, have have to look into the 2nd option: cva_list. Which I have not used befor...
by TJF
May 21, 2019 1:00
Forum: Projects
Topic: GooData: diagrams for screen / printer / files
Replies: 17
Views: 1886

Re: GooData: diagrams for screen / printer / files

Hi badidea! Please note: this is old code from 2013, before fbc got 64 bit support! I tried to get this working on linux with 64-bit fbc, but no luck so far. I have libgoocanvas installed (although not sure which version) The command dpkg -l libgoocanvas* should show the version. When I try to compi...
by TJF
May 20, 2019 20:36
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2216

Re: Creating (scientific) plots via gnuplot

BTW, it was me who told Helmut Michels (dislin author) about the existence of FB. ... and you told him about the existence of my bindings/examples. Now Helmut is happy! He ships the source code of translated examples and bindings for a further programming language. But unfortunately he does not shi...

Go to advanced search