Search found 479 matches

by boddhi
Tue Jun 10, 2025 9:11 pm
Forum: Coding Questions
Topic: [SOLVED] ReadString() and reading length
Replies: 3
Views: 321

Re: ReadString() and reading length

SMaag wrote: You set length as #PB_File_IgnoreEOL = 65536
That's your problem
:oops: How stupid I am !!!
Thanks :wink:
Thanks for the explicative link, Rashad :wink:
by boddhi
Tue Jun 10, 2025 8:05 pm
Forum: Coding Questions
Topic: [SOLVED] ReadString() and reading length
Replies: 3
Views: 321

[SOLVED] ReadString() and reading length

Hi,

In the docs, there is no indication about the maximun length that ReadString() can return.
I searched in the PB forums (Keywords : ReadString Length) and didn't find any concluant post.

I use ReadString(FileNb,#PB_File_IgnoreEOL,#PB_File_IgnoreEOL) to retrieve the whole content of text files ...
by boddhi
Wed Jun 04, 2025 11:05 pm
Forum: Coding Questions
Topic: LoadFont inside StartDrawing-block
Replies: 3
Views: 387

Re: LoadFont inside StartDrawing-block

Any code?

I haven't tested it, and maybe it's a bug, but I wonder: What is the absolute necessity of including LoadFont inside a StartDrawing()/StopDrawing() block?
I've never had a problem loading a font before using such a block...
by boddhi
Wed May 28, 2025 7:26 pm
Forum: Coding Questions
Topic: [SOLVED] Thread with multiple processing loops
Replies: 6
Views: 431

Re: [SOLVED] Thread with multiple processing loops

Hello jacdelad

there's a mk-spft-code floating around in the Tips & Tricks sub forum, which addresses this especially for threads. Worth a look.

Probably the one I was referring to when I mentioned example #5 :wink: ( :oops: ouupss, I seem to have forgotten to mention it in this post: it's here ...
by boddhi
Mon May 26, 2025 9:54 pm
Forum: Coding Questions
Topic: [SOLVED] Thread with multiple processing loops
Replies: 6
Views: 431

Re: Thread with multiple processing loops


With Windows it works in most cases. But as soon as you switch to Linux or macOS, it crashes.

Thanks a lot for all these explanations.

However, I must admit that I don't always understand why some actions on gadgets, depending on where they are placed in the threaded procedure, work or don't ...
by boddhi
Sun May 25, 2025 10:41 pm
Forum: Coding Questions
Topic: Open Console in Full Screen
Replies: 3
Views: 275

Re: Open Console in Full Screen

Spambot ?

First message, no presentation, no Hello , no please or thank you :?

viewtopic.php?t=42713
by boddhi
Sun May 25, 2025 10:20 pm
Forum: Coding Questions
Topic: [SOLVED] Thread with multiple processing loops
Replies: 6
Views: 431

Re: Thread with multiple processing loops


Since this is performed in a sequence in a sequence, a single thread is sufficient

Thanks for your reply :wink:

Another (noob's) question: I understand that you have to use a memory address (to a string or a structure) when you want to pass non-numeric parameters through a PostEvent.
I see in ...
by boddhi
Sun May 25, 2025 5:10 pm
Forum: Coding Questions
Topic: [SOLVED] Thread with multiple processing loops
Replies: 6
Views: 431

[SOLVED] Thread with multiple processing loops

Hello,

Note: The use and programming of threads is still a bit of a mystery to me. I'm gradually trying to understand and learn how to use them :) .

I have a question about the best way to proceed in the following case:
A first loop retrieves data by sending an indeterminate number of HTTP ...
by boddhi
Sun May 25, 2025 10:45 am
Forum: Tricks 'n' Tips
Topic: Mini Thread Control
Replies: 16
Views: 9147

Re: Mini Thread Control

mk-soft wrote: Do it outside of thread
Thanks a lot mk-soft for your (very fast) reply and your tips on threads :wink:
by boddhi
Sun May 25, 2025 9:59 am
Forum: Tricks 'n' Tips
Topic: Mini Thread Control
Replies: 16
Views: 9147

Re: Mini Thread Control


- Example 5: MessageRequester from Thread


Hello,

I'm still not familiar with threads, semaphores and other mutexes :oops: .

Starting with example 5, when the Stop button is pressed, I would like to display a MessageRequester asking the user if he really wants to stop the current process.
My ...
by boddhi
Wed May 21, 2025 12:10 pm
Forum: Coding Questions
Topic: Adding text and signature on down of PDF document [Resolved]
Replies: 11
Views: 431

Re: Adding text and signature on down of PDF document


[...] It's for sign documents already created by entreprise (invoice, estimate, etc) [...]


Hi KCC,

If I remember correctly, you know how to code in VB.
Another solution, then, if you have Word, is to create a macro using the ActiveDocument.Shapes.AddPicture() method.
There was a time when ...
by boddhi
Sat May 10, 2025 11:12 am
Forum: Coding Questions
Topic: is it duplicated library code in final exe ?
Replies: 15
Views: 1284

Re: is it duplicated library code in final exe ?

To the best of my knowledge, the UsePNGImageEncoder() and UsePNGImageDecoder() functions don't compress/decompress PNG images, but only allow this type of image to be written and read.

So, to compress/decompress them in size, you need to use too the appropriate functions provided by the Packer lib ...
by boddhi
Tue May 06, 2025 9:44 pm
Forum: Coding Questions
Topic: Filter ListView/ListIcon contents
Replies: 9
Views: 846

Re: Filter ListView/ListIcon contents

Hello,

For filtering rows in a LIG, you can also see this post by nicolaus and the adaptation made by flype.
Note : Some constants are now native in PB and must be commented :wink:
by boddhi
Wed Feb 19, 2025 11:34 am
Forum: Coding Questions
Topic: Ms Speech
Replies: 13
Views: 1161

Re: Ms Speech

Salut Jak

Question which has nothing to do with it.
When I access the PureBasic site, it takes much longer than before, is this normal or is it coming from my computer? It's still the same computer and I don't have any slowness problems on other sites.

For a few days now, the site has been ...
by boddhi
Wed Feb 19, 2025 7:00 am
Forum: Coding Questions
Topic: hints and a noob question answered please. about linking /embedding a file.
Replies: 4
Views: 459

Re: hints and a noob question answered please. about linking /embedding a file.

noxidderf wrote: I want to add or embed or link a file with a purebasic program.
It's a topic that's been discussed many times, and you can find it with the search module.

You can use IncludeBinary.
An example among many published : https://www.purebasic.fr/english/viewto ... 55#p593755