Third revision of my coroutine system (resumable procedures), this time is a static lib written in C++ because the pb version used some deprecated functions that may not work in Macos Silicon. Even is not written in PB i tested on it first and translated the include, it may be useful.
I gave chat ...
Search found 858 matches
- Sun Jul 20, 2025 12:49 pm
- Forum: Applications - Feedback and Discussion
- Topic: Coroutines v3 - Crossplatform - AI Generated
- Replies: 1
- Views: 792
- Thu Jun 26, 2025 1:55 pm
- Forum: General Discussion
- Topic: Webview2 control - Chromium browser for Purebasic (Windows) [Jan 1, 2024]
- Replies: 181
- Views: 86606
Re: Webview2 control - Chromium browser for Purebasic (Windows) [Jan 1, 2024]
I am glad it helped 

- Sun May 25, 2025 3:37 pm
- Forum: Coding Questions
- Topic: ImageVectorOutput() has no antialiasing – normal or bug?
- Replies: 7
- Views: 640
Re: ImageVectorOutput() has no antialiasing – normal or bug?
I think the problem is how PB creates a GDI Plus bitmap from a HBITMAP, because using the api directly works as expected but implies some hacking replacing the pb gdi plus graphics context.
Both examples fixed:
pjay:
; Adjust pre-multiplied alpha to true Alpha to resolve edge fringing with VDL ...
Both examples fixed:
pjay:
; Adjust pre-multiplied alpha to true Alpha to resolve edge fringing with VDL ...
- Thu May 15, 2025 10:04 pm
- Forum: Tricks 'n' Tips
- Topic: Fluid Colour - Abstract background.
- Replies: 11
- Views: 2471
Re: Fluid Colour - Abstract background.

- Mon Apr 21, 2025 9:24 am
- Forum: Tricks 'n' Tips
- Topic: PB Coroutines Ver. 2 [Crossplatform]
- Replies: 6
- Views: 1374
Re: PB Coroutines Ver. 2 [Crossplatform]
Added the destroy callback on MacOs, when you supply a windowid and a callback in co_create(), the callback will be called when the coroutine has finished, so you can clean up stuff or destroy the coroutine.
- Sat Apr 19, 2025 3:56 pm
- Forum: Tricks 'n' Tips
- Topic: PB Coroutines Ver. 2 [Crossplatform]
- Replies: 6
- Views: 1374
Re: PB Coroutines Ver. 2 [Crossplatform]
Hi,
the fact that reaches the trampoline function is a good sign, i changed some things in macos, can you test it?
I also added some new parameters in co_create, a coroutine cleanup callback in the context of a window application, only for win/linux for now i''ll add it to macos once the basic ...
the fact that reaches the trampoline function is a good sign, i changed some things in macos, can you test it?
I also added some new parameters in co_create, a coroutine cleanup callback in the context of a window application, only for win/linux for now i''ll add it to macos once the basic ...
- Fri Apr 18, 2025 8:23 pm
- Forum: Tricks 'n' Tips
- Topic: PB Coroutines Ver. 2 [Crossplatform]
- Replies: 6
- Views: 1374
Re: PB Coroutines Ver. 2 [Crossplatform]
Fibers are more lightweight and faster when switching, and since only one fiber runs at a time per thread they don't need synchronization like threads. It's task switching vs thread parallel execution.
In one of my projects threads won't work because all the code needed to be executed on the same ...
In one of my projects threads won't work because all the code needed to be executed on the same ...
- Thu Apr 17, 2025 3:56 pm
- Forum: Tricks 'n' Tips
- Topic: PB Coroutines Ver. 2 [Crossplatform]
- Replies: 6
- Views: 1374
PB Coroutines Ver. 2 [Crossplatform]
I did a rewrite of my previous coroutine system (resumable functions):
https://www.purebasic.fr/english/viewtopic.php?p=635874&hilit=coroutines#p635874
Now is cleaner and supports MacOS but only tested on Monterrey on a VM, it may not work on newer systems, testing will be appreciated.
It uses ...
https://www.purebasic.fr/english/viewtopic.php?p=635874&hilit=coroutines#p635874
Now is cleaner and supports MacOS but only tested on Monterrey on a VM, it may not work on newer systems, testing will be appreciated.
It uses ...
- Tue Mar 25, 2025 5:09 pm
- Forum: Tricks 'n' Tips
- Topic: Windows Media Player Control
- Replies: 47
- Views: 17868
Re: Windows Media Player Control
I think the best option is to use libvlc, this works with your file but you will have to figure out how to embeb a player in a container gadget, i think there are some examples in this forum.
Download libvlc:
https://www.nuget.org/packages/VideoLAN.LibVLC.Windows/3.0.21
Rename it to .zip and ...
Download libvlc:
https://www.nuget.org/packages/VideoLAN.LibVLC.Windows/3.0.21
Rename it to .zip and ...
- Thu Mar 20, 2025 6:02 pm
- Forum: Tricks 'n' Tips
- Topic: Windows Media Player Control
- Replies: 47
- Views: 17868
Re: Windows Media Player Control
Can you upload a sample of the not working video to somewhere?
- Tue Mar 18, 2025 10:37 pm
- Forum: Coding Questions
- Topic: Crossplatform DLL with string parameters
- Replies: 2
- Views: 267
Re: Crossplatform DLL with string parameters
Ok, thanks
- Tue Mar 18, 2025 3:22 pm
- Forum: Coding Questions
- Topic: Crossplatform DLL with string parameters
- Replies: 2
- Views: 267
Crossplatform DLL with string parameters
Let's say i want to build a crossplatform dll with a function that accepts a string as a parameter.
The dll will be called from another language like C or objective-c for example.
Wich kind of string expects PB on the three paltforms?,
Passing this will work?
LPWSTR windows
const char* linux
const ...
The dll will be called from another language like C or objective-c for example.
Wich kind of string expects PB on the three paltforms?,
Passing this will work?
LPWSTR windows
const char* linux
const ...
- Mon Mar 10, 2025 11:21 pm
- Forum: Tricks 'n' Tips
- Topic: Windows Media Player Control
- Replies: 47
- Views: 17868
Re: Windows Media Player Control
Hi, I don't have any uncompressed video to test, it worked with all the avi compressed videos i tried but i noticed that mkv videos don't play, i will look into it later.
I uptated the code with a function to get the supported ranges GetRange(), you can try that before setting the range.
AI says ...
I uptated the code with a function to get the supported ranges GetRange(), you can try that before setting the range.
AI says ...
- Thu Mar 06, 2025 4:44 pm
- Forum: Tricks 'n' Tips
- Topic: Windows Media Player Control
- Replies: 47
- Views: 17868
Re: Windows Media Player Control
That's an undocumented interface, it will not work.
To set the brightness you need to use DirectShow.
First install the codecs for current video formats:
https://github.com/Nevcairiel/LAVFilters/releases
This code is done with the help of AI in C++, currently creates and releases all the ...
To set the brightness you need to use DirectShow.
First install the codecs for current video formats:
https://github.com/Nevcairiel/LAVFilters/releases
This code is done with the help of AI in C++, currently creates and releases all the ...
- Tue Feb 25, 2025 12:44 pm
- Forum: Coding Questions
- Topic: PokeS() vs *String\s
- Replies: 9
- Views: 759
Re: PokeS() vs *String\s
So both are wrong, thanks!