Search found 1346 matches

by AZJIO
Tue Apr 23, 2024 3:40 pm
Forum: General Discussion
Topic: Tools and Configurations for PureBasic
Replies: 1
Views: 142

Tools and Configurations for PureBasic

Download for Windows: yandex.ru upload.ee Download for Linux: yandex.ru I made an archive to quickly set up PureBasic. Unpack the archive and place PureBasic in it, and you will immediately have a configured IDE with tools. But the language used there is Russian, so you need to switch the language a...
by AZJIO
Tue Apr 23, 2024 10:59 am
Forum: Bugs - Windows
Topic: Packer - AddPackFile() bug
Replies: 2
Views: 122

Re: Packer - AddPackFile() bug

Show me an example of how you create a folder. I have to specify the file as source to create an empty folder.

Code: Select all

Debug AddPackFile(0, filename, "folder/")
by AZJIO
Tue Apr 23, 2024 10:18 am
Forum: Bugs - Windows
Topic: Packer - corrupted ZIP file
Replies: 1
Views: 128

Re: Packer - corrupted ZIP file

Newbies are not allowed to write in the "Bugs" section UseZipPacker() Define filename.s = "c:\temp\schema.sql" If CreatePack(0, "c:\temp\test.zip") Debug AddPackFile(0, filename, "temp/schema.sql") ClosePack(0) EndIf It seems to me that for Windows you should ...
by AZJIO
Mon Apr 22, 2024 11:22 pm
Forum: Coding Questions
Topic: Problems with: #PB_EventType_LeftClick
Replies: 6
Views: 265

Re: Problems with: #PB_EventType_LeftClick

Code: Select all

Repeat
  Select WaitWindowEvent()
  	Case #WM_LBUTTONDOWN
  		If GetActiveGadget() = Index_List
  			Debug 1
  		EndIf
;   	Case #WM_LBUTTONDBLCLK
;   		If GetActiveGadget() = Index_List
;   			Debug 2
;   		EndIf
    Case #PB_Event_Gadget
by AZJIO
Mon Apr 22, 2024 1:53 pm
Forum: Coding Questions
Topic: Thread Parameters?
Replies: 25
Views: 1384

Re: Thread Parameters?

Global param$ Global semaphore = CreateSemaphore() Procedure MyThread_One(param) Debug "Cook: preparing food" Sleep_(3000) SignalSemaphore(semaphore) Debug "Cook: the food is ready, you can eat" EndProcedure Procedure MyThread_Two(param) Debug "Client: I eat food" Slee...
by AZJIO
Mon Apr 22, 2024 12:53 am
Forum: Coding Questions
Topic: Problems with: #PB_EventType_LeftClick
Replies: 6
Views: 265

Re: Problems with: #PB_EventType_LeftClick

As far as I remember, the EditorGadget gadget does not have re-click events. When an event from receiving focus has arrived, then no further new events of receiving focus occur since the object is already in focus. Place the cursor in the input field on the left and then on EditorGadget and you will...
by AZJIO
Sun Apr 21, 2024 5:13 am
Forum: Coding Questions
Topic: Speed up loop
Replies: 13
Views: 597

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: 25
Views: 1384

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: 1840

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: 120

"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: 97

[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: 5999

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: 1724

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: 1724

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.