Search found 1340 matches

by AZJIO
Sun Apr 21, 2024 5:13 am
Forum: Coding Questions
Topic: Speed up loop
Replies: 2
Views: 53

Re: Speed up loop

I could rewrite everything, but I'm too lazy. 1. Len(myString) is calculated 2 times in a loop. Does the length of the string change somewhere? 2. S=S+ASCII_CHARS(CharIndex) S+ASCII_CHARS(CharIndex) 3. Every time you add a character, you over-allocate memory. It is necessary to make a buffer and wri...
by AZJIO
Sat Apr 20, 2024 2:01 pm
Forum: Coding Questions
Topic: Thread Parameters?
Replies: 16
Views: 889

Re: Thread Parameters?

The Semaphore approach isn't going to work for me, because "Global Semaphore.i = CreateSemaphore()" is global and my threads are going to be called more than once, so a global semaphore for a thread is going to send the signal to the wrong thread callers, right? Semaphore is like a flag, ...
by AZJIO
Fri Apr 19, 2024 9:18 pm
Forum: Applications - Feedback and Discussion
Topic: TextReplace
Replies: 5
Views: 1729

Re: TextReplace

Watch my video on how I use my old version of the program as a tool for finding code snippets.
by AZJIO
Fri Apr 19, 2024 9:07 pm
Forum: Bugs - Documentation
Topic: "See Also" section
Replies: 1
Views: 85

"See Also" section

Here is a list of functions that should have a link between them

FindString <-> ReplaceString
Prototype <-> Building a DLL
CreatePopupImageMenu <-> SysTrayIconMenu
ReplaceString <-> ReplaceRegularExpression
Structure <-> Compiler Functions
by AZJIO
Fri Apr 19, 2024 9:02 pm
Forum: Bugs - Documentation
Topic: [Done] SysTrayIconMenu
Replies: 1
Views: 62

[Done] SysTrayIconMenu

1. There should be 2 parameters
2. #MenuID must be a MenuID
by AZJIO
Fri Apr 19, 2024 6:43 pm
Forum: Announcement
Topic: PureBasic.chm modern style
Replies: 24
Views: 5969

Re: PureBasic.chm modern style

I recorded two videos on how I compile the help file.
video1
video2
by AZJIO
Thu Apr 18, 2024 5:49 am
Forum: General Discussion
Topic: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
Replies: 21
Views: 1596

Re: PureBasic v6.10 is producing a file size 5 times bigger than v6.04

DeanH wrote: Thu Apr 18, 2024 2:11 am I would very much like to see some type of auto-include system in PB where I can have a bunch of small source code files with my own functions that are automatically included if I use them.
Include Helper
pbOptimizer
by AZJIO
Wed Apr 17, 2024 9:01 am
Forum: General Discussion
Topic: PureBasic v6.10 is producing a file size 5 times bigger than v6.04
Replies: 21
Views: 1596

Re: PureBasic v6.10 is producing a file size 5 times bigger than v6.04

DeanH wrote: Wed Apr 17, 2024 1:26 am I am currently breaking these big include library files down into many small pbi files, only included when needed
"C Backend" checks for unused functions and never adds them to the compiled file.
by AZJIO
Tue Apr 16, 2024 4:31 pm
Forum: Coding Questions
Topic: Detect TaskBar events [Resolved]
Replies: 8
Views: 687

Re: Detect TaskBar events

Kwai chang caine wrote: Tue Apr 16, 2024 2:57 pm There are hooks
That's why I thought that events from windows also go through some kind of filter

SetWindowsHookEx + WH_CALLWNDPROC ?
SetWindowsHookEx + WH_SHELL + HSHELL_ACTIVATESHELLWINDOW, HSHELL_GETMINRECT, HSHELL_WINDOWACTIVATED ?
SetWindowsHookEx + CBTProc + HCBT_ACTIVATE ?
by AZJIO
Tue Apr 16, 2024 2:41 pm
Forum: Coding Questions
Topic: Detect TaskBar events [Resolved]
Replies: 8
Views: 687

Re: Detect TaskBar events

Kwai chang caine wrote: Tue Apr 16, 2024 9:06 am Perhap it exist a more serious way for see if an application is minimized in the taskbar, and restored from the taskbar
WM_ACTIVATE. These are the events of minimizing and maximizing a window. I don't know how to apply this to a third-party process.
by AZJIO
Mon Apr 15, 2024 12:15 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 330
Views: 41265

Re: PureBasic 6.10 LTS is out !

Yesterday I wanted to respond about UPX, but I didn’t send it. Yes, antivirus programs unpack it, but they may assume that the compressed UPX is not a company product, so they probably add a risk rating. And I also read yesterday that the program loads only the executable part of the code into memor...
by AZJIO
Fri Apr 12, 2024 7:40 am
Forum: The PureBasic Editor
Topic: [IDE tool] Tidy
Replies: 4
Views: 635

Re: [IDE tool] Tidy

Update
Added language support
Bug fixed: a symbol was added before the bracket. (Linux version has not yet been rebuilt)
Added rule "-" before comma, no space after "-". And also before the bracket, if equating or listing separated by commas.
by AZJIO
Thu Apr 11, 2024 9:44 am
Forum: 3D Programming
Topic: Landscape v5
Replies: 30
Views: 9016

Re: Landscape v5

On Linux I had to specify the path to the texture, the path to the library Global CurPath$ = GetPathPart(ProgramFilename()) CurPath$ + "soil_wall.jpg" InitEngine3D(#PB_Engine3D_DebugLog, CurPath$ + "engine3d.so") If you put the file ("engine3d.so") in a folder next to t...
by AZJIO
Wed Apr 10, 2024 9:44 am
Forum: Bugs - Documentation
Topic: Broken links to games
Replies: 0
Views: 235

Broken links to games

Useful Internet Links -> Games written with PureBasic
Of all the links, only one opened, and it was not clear what kind of site it was.
Use target="_blank" to open the page in your default browser rather than inside a CHM file.