+1idle wrote: Thu Aug 28, 2025 1:57 am Most of the issues of working with c could be resolved if #include were moved out of main and you had the c system headers matching the gcc tool chain
Then you could import c libs and only wrap the functions you need
Search found 1473 matches
- Fri Aug 29, 2025 5:59 pm
- Forum: Feature Requests and Wishlists
- Topic: Feature request : Call a function from Backend C in Purebasic
- Replies: 3
- Views: 906
Re: Feature request : Call a function from Backend C in Purebasic
- Sat Aug 09, 2025 1:38 pm
- Forum: Applications - Feedback and Discussion
- Topic: [Source] Execute Digital Vector Generator (DVG) Instructions in PB
- Replies: 4
- Views: 626
[Source] Execute Digital Vector Generator (DVG) Instructions in PB
Recently 8-Bit Show And Tell made a video about a C64 Asteroids Emulator mentioning the DVG.
Long story short: Executing DVG instructions in PB sounded like a fun litte project. :D
Note that the project is still WIP and unfinished, it needs more testing & functions,
anyway i thought its ok enough ...
Long story short: Executing DVG instructions in PB sounded like a fun litte project. :D
Note that the project is still WIP and unfinished, it needs more testing & functions,
anyway i thought its ok enough ...
- Fri Aug 08, 2025 6:54 pm
- Forum: Off Topic
- Topic: Illustrating BASIC: A Book from 1977
- Replies: 19
- Views: 1357
Re: Illustrating BASIC: A Book from 1977
...
This book, by Donald Alcock, was a marvellously illustrated BASIC manual that explained the many concepts of computer programming in a fun way. It removed all the technical daunt from the subject by using doodles to simplify the topics.
Great book, theres also illustrating C from the same ...
- Sat Jul 12, 2025 9:36 pm
- Forum: Tricks 'n' Tips
- Topic: [Source] Morse Code Functions (x64)
- Replies: 0
- Views: 448
[Source] Morse Code Functions (x64)
Some functions i wrote while playing around with morse codes.
Source (x64):
EnableExplicit
; MORSE CODE FUNCTIONS
; Version: draft
; PureBasic 6.21 (x64)
; Copyright (c) 2025 Mijikai
; MIT License
Structure _MORSE_CODE
id.a
length.a
byte.a[4]
char.s{1}
EndStructure
; Procedure.i morse_code ...
Source (x64):
EnableExplicit
; MORSE CODE FUNCTIONS
; Version: draft
; PureBasic 6.21 (x64)
; Copyright (c) 2025 Mijikai
; MIT License
Structure _MORSE_CODE
id.a
length.a
byte.a[4]
char.s{1}
EndStructure
; Procedure.i morse_code ...
- Sat Jul 12, 2025 9:29 pm
- Forum: Tricks 'n' Tips
- Topic: morse code player
- Replies: 12
- Views: 1130
Re: morse code player
Thanks for sharing, pretty cool 
Got me to play around with morse codes.

Got me to play around with morse codes.
- Sat Jul 12, 2025 8:09 am
- Forum: Coding Questions
- Topic: Order of JSON items
- Replies: 9
- Views: 672
Re: Order of JSON items
Interesting, here is what i came up with.
EnableExplicit
Structure _JSON_MEMBER
*member
key.s
EndStructure
Structure _JSON_OBJECT
count.i
Array json._JSON_MEMBER(0)
EndStructure
Procedure.i json_object_sort(value.i)
Protected._JSON_OBJECT *object
Protected.i size,index
*object ...
EnableExplicit
Structure _JSON_MEMBER
*member
key.s
EndStructure
Structure _JSON_OBJECT
count.i
Array json._JSON_MEMBER(0)
EndStructure
Procedure.i json_object_sort(value.i)
Protected._JSON_OBJECT *object
Protected.i size,index
*object ...
- Sun Jun 29, 2025 7:09 pm
- Forum: Announcement
- Topic: YouTube PureBasic Videos
- Replies: 20
- Views: 2779
Re: YouTube PureBasic Videos
Hi @Phollyer thank you for the videos 
I follow your progress on the wargame which is really interesting to me
since i like (hex based) wargames and still want to create one myself.

I follow your progress on the wargame which is really interesting to me
since i like (hex based) wargames and still want to create one myself.
- Fri Jun 27, 2025 4:44 pm
- Forum: Tricks 'n' Tips
- Topic: SetTextAlignment (All OS)
- Replies: 4
- Views: 999
Re: SetTextAlignment (All OS)
Thanks nice to have 

- Mon Jun 23, 2025 8:47 pm
- Forum: Coding Questions
- Topic: WebViewGadget() access to settings / features ?
- Replies: 8
- Views: 683
Re: WebViewGadget() access to settings / features ?
@mk-soft thanks, i will give it a try 

- Mon Jun 23, 2025 8:42 pm
- Forum: General Discussion
- Topic: Anyone did a better InputRequester module or include?
- Replies: 17
- Views: 2027
Re: Anyone did a better InputRequester module or include?
Thanks for the cool examples, i learned only now how useful DisableWindow() can be :shock:
I also wanted to give it a try, this should be platform independent + DPI.
This still needs more testing (different OS + DPI).
https://i.postimg.cc/TwdkgBtr/mr.jpg
The size of the dialog is automatically ...
I also wanted to give it a try, this should be platform independent + DPI.
This still needs more testing (different OS + DPI).
https://i.postimg.cc/TwdkgBtr/mr.jpg
The size of the dialog is automatically ...
- Mon Jun 23, 2025 6:26 pm
- Forum: Coding Questions
- Topic: WebViewGadget() access to settings / features ?
- Replies: 8
- Views: 683
Re: WebViewGadget() access to settings / features ?
I assume its the same for the WebGadget() ?
How about the history, is there a way to delete it ?
How about the history, is there a way to delete it ?
- Sun Jun 22, 2025 3:36 pm
- Forum: Coding Questions
- Topic: WebViewGadget() access to settings / features ?
- Replies: 8
- Views: 683
Re: WebViewGadget() access to settings / features ?
@mk-soft thanks for the info & link.
Had the same result, seems like its not possible.
Theres also:
Had the same result, seems like its not possible.
Theres also:
Code: Select all
gboolean
webkit_website_data_manager_is_ephemeral (
WebKitWebsiteDataManager* manager
)
- Sun Jun 22, 2025 10:21 am
- Forum: Coding Questions
- Topic: WebViewGadget() access to settings / features ?
- Replies: 8
- Views: 683
Re: WebViewGadget() access to settings / features ?
Got this, still no solution thought.
WebViewFeatureList (WebKit-GTK):
EnableExplicit
ImportC ""
webkit_web_view_get_settings.i(*webview);<- how to get / use this ?
webkit_settings_set_feature_enabled.i(*settings,*feature,enabled.i);<- how to get / use this ?
webkit_feature_get_name.i(*feature ...
WebViewFeatureList (WebKit-GTK):
EnableExplicit
ImportC ""
webkit_web_view_get_settings.i(*webview);<- how to get / use this ?
webkit_settings_set_feature_enabled.i(*settings,*feature,enabled.i);<- how to get / use this ?
webkit_feature_get_name.i(*feature ...
- Sat Jun 21, 2025 8:45 pm
- Forum: Windows
- Topic: WaitThread problem
- Replies: 7
- Views: 854
Re: WaitThread problem
Example:
One eventloop -> thread posts events.
Enumeration
#EVENT_START = #PB_Event_FirstCustomValue
#EVENT_WAIT
#EVENT_STOP
EndEnumeration
Procedure thread(param)
PostEvent(#EVENT_START) : Delay(1000)
PostEvent(#EVENT_WAIT) : Delay(1000)
PostEvent(#EVENT_STOP)
EndProcedure
If OpenWindow(0 ...
One eventloop -> thread posts events.
Enumeration
#EVENT_START = #PB_Event_FirstCustomValue
#EVENT_WAIT
#EVENT_STOP
EndEnumeration
Procedure thread(param)
PostEvent(#EVENT_START) : Delay(1000)
PostEvent(#EVENT_WAIT) : Delay(1000)
PostEvent(#EVENT_STOP)
EndProcedure
If OpenWindow(0 ...
- Sat Jun 21, 2025 1:34 pm
- Forum: Coding Questions
- Topic: WebViewGadget() access to settings / features ?
- Replies: 8
- Views: 683
WebViewGadget() access to settings / features ?
Is there a way to get access to a WebViewGadget() settings / features ?
Mostly for Linux (WebKit-GTK) but also Windows.
Stuff like this for example (WebKit-GTK):
Mostly for Linux (WebKit-GTK) but also Windows.
Stuff like this for example (WebKit-GTK):
Code: Select all
void
webkit_settings_set_enable_private_browsing (
WebKitSettings* settings,
gboolean enabled
)