Search found 888 matches

by StarBootics
Thu Jan 30, 2025 5:24 pm
Forum: Coding Questions
Topic: How to import Linux file containing sd_notify()
Replies: 4
Views: 2637

Re: How to import Linux file containing sd_notify()

I don't if the following code will help but ...

; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Project name : Linux Notify
; File Name : Linux Notify.pb
; File version: 1.0.0
; Programming : OK
; Programmed by : StarBootics
; Date : May 9th, 2020
; Last Update : May 9th, 2020
; PureBasic ...
by StarBootics
Thu Dec 19, 2024 7:25 pm
Forum: Coding Questions
Topic: Confusion on how to implement virtual tables on structures
Replies: 15
Views: 1612

Re: Confusion on how to implement virtual tables on structures

Hello everyone,

The following example show another way to do OOP and Polymorphism but without using Interfaces.

For the Color3f "Class", I have used a Global variable defined inside a Module for the virtual table. For the Material "Class", I have used an Allocated structure for the virtual table ...
by StarBootics
Thu Oct 24, 2024 1:23 pm
Forum: Coding Questions
Topic: How to draw an OpenGL polygon with a texture?
Replies: 6
Views: 1253

Re: How to draw an OpenGL polygon with a texture?

[/co; --- Déclaration et initialisation de la fenêtre ---
If OpenWindow(0, 0, 0, 800, 600, "Texture OpenGL avec PureBasic", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If OpenWindowedScreen(WindowID(0), 0, 0, 800, 600, 0, 0, 0)

; --- Initialisation d'OpenGL ---
glEnable_(#GL_TEXTURE_2D ...
by StarBootics
Mon Oct 07, 2024 11:25 am
Forum: Off Topic
Topic: What's your favorite computer game of all time?
Replies: 50
Views: 10898

Re: What's your favorite computer game of all time?

X-Wing Alliance and Descent 3.
by StarBootics
Wed Sep 25, 2024 6:56 pm
Forum: Linux
Topic: [Linux] C backend confusion / segfault
Replies: 3
Views: 2586

Re: [Linux] C backend confusion / segfault

Maybe a little launch with valgrind ./pbcompilerc will help to see what is crashing when it crash.

Otherwise Fred can probably answer that question.

Best regards
StarBootics
by StarBootics
Wed Sep 25, 2024 3:22 am
Forum: Linux
Topic: [Linux] C backend confusion / segfault
Replies: 3
Views: 2586

Re: [Linux] C backend confusion

You need to go to the Preferences->Compiler->Additional Compilers

And you need to browse for the pbcompilerc executable then click the Add button.

After that you will be able to select the compiler you want to use in the Compiler Options menu.

It work under Debian, but never tested under other ...
by StarBootics
Mon Sep 23, 2024 7:05 pm
Forum: Off Topic
Topic: PB vs C
Replies: 66
Views: 17269

Re: PB vs C

I have make the switch to plain C instead of PureBasic few months ago and I have reprogrammed a program in C, a small one, and what I have discovered is the size of the executable is bigger with PureBasic.

The program written in PureBasic : 375.4 Ko
The same program written in C : 232.0 Ko

Now a ...
by StarBootics
Sat Sep 21, 2024 8:52 am
Forum: General Discussion
Topic: Detect file type by content?
Replies: 11
Views: 2234

Re: Detect file type by content?

Maybe they have a magic number at the beginning you can try to read.

Beside that I don't know what else can be used to identify the files.

Best regards
StarBootics
by StarBootics
Thu Aug 15, 2024 9:16 am
Forum: Tricks 'n' Tips
Topic: A bitset data structure library
Replies: 5
Views: 2916

Re: A bitset data structure library

Hello everyone,

Error reported and Suggestions by STARGÅTE are either corrected or implemented.

Best regards
StarBootics
by StarBootics
Wed Aug 14, 2024 10:55 pm
Forum: Tricks 'n' Tips
Topic: A bitset data structure library
Replies: 5
Views: 2916

Re: A bitset data structure library


Thanks StarBootics! Maybe you want to add a "FlipBit" function?


DONE ! FlipBit and FlipBits methods added.

I have updated the code in my first post in this topic. Now another way of writing OOP library in PureBasic.

EDIT 1 : Little update to version 1.1.0 ...
by StarBootics
Mon Aug 12, 2024 10:10 am
Forum: Coding Questions
Topic: Comptability between in C and PB for array
Replies: 2
Views: 1542

Re: Comptability between in C and PB for array

The C array you are creating is 'Static' while PureBasic Array are 'Dynamic'. They are incompatible data structures, that's why your code don't work.

Best regards
StarBootics
by StarBootics
Sun Aug 11, 2024 4:18 am
Forum: Tricks 'n' Tips
Topic: A bitset data structure library
Replies: 5
Views: 2916

A bitset data structure library

Hello everyone,

I have search the forum about Bitsets and there is some examples but they seems to have a fixed amount of bits for the bitset. So I have created a library that allow to have an arbitrary numbers of bits.

EDIT 1 : Little update to V1.1.0
EDIT 2 : Little update to V1.2.0 ...
by StarBootics
Mon Jun 24, 2024 11:41 pm
Forum: Applications - Feedback and Discussion
Topic: Dev-Board
Replies: 10
Views: 5311

Re: Dev-Board


One wish:
The tool should be resizeable (I dont need such a big window for "planing" issues)


Would you prefer a different User Interface that as only one category visible (In progress) and have an auxiliary window that show all categories and where you can move cards around ?

Personally I like ...
by StarBootics
Mon Jun 24, 2024 10:04 am
Forum: Applications - Feedback and Discussion
Topic: Dev-Board
Replies: 10
Views: 5311

Re: Dev-Board


Thanks for posting this work. Why is there a specific requirement to compile the application with the below?
The required compiler cannot be found
PureBasic 6.02 beta-4 LTS - C Backend (Linux - x64)


You need to go in the compiler settings and re-select the compiler. You should be able to use ...
by StarBootics
Mon Jun 24, 2024 10:02 am
Forum: Applications - Feedback and Discussion
Topic: Dev-Board
Replies: 10
Views: 5311

Re: Dev-Board


- You can't add items unless a new project has been created first


Oops I forget to mention that. Indeed you need to create a project first. Also the project will be saved automatically when you close the program, load an existing project or create a new one.


- With many items per box - if a ...