Search found 1334 matches

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

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

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

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

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: 325
Views: 40428

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

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

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

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.
by AZJIO
Wed Apr 10, 2024 8:52 am
Forum: Coding Questions
Topic: DLL returning an integer
Replies: 8
Views: 432

Re: DLL returning an integer

Building a DLL When using CallFunction() (or one of its similar CallXXX functions) on a DLL function you will get a pointer on the return string, which you could read with PeekS(). Using a pointer to the structure *s.String is not relevant, replace it with a pointer *s. I did some tests and I could...
by AZJIO
Tue Apr 09, 2024 3:56 pm
Forum: Coding Questions
Topic: DLL returning an integer
Replies: 8
Views: 432

Re: DLL returning an integer

It happened EnableExplicit ; It's like the contents of structures Prototype.i MyThirdFunction(string.p-unicode) Prototype.i MyFourthFunction(*i.Integer) Define String$ Define num ; It's like declaring structures Define My3Function.MyThirdFunction Define My4Function.MyFourthFunction If OpenLibrary(0,...
by AZJIO
Sun Apr 07, 2024 2:17 pm
Forum: Coding Questions
Topic: How to create constants automatically?
Replies: 12
Views: 469

Re: How to create constants automatically?

@charvista
How is a constant different from a variable? As a result, this will be a memory cell, with the only difference being that the variable can be changed.
by AZJIO
Sun Apr 07, 2024 1:35 pm
Forum: Coding Questions
Topic: How to create constants automatically?
Replies: 12
Views: 469

Re: How to create constants automatically?

Code: Select all

EnableExplicit
Define.i R,G,B,N

#MYCOLOR = $FFB200

R=Red(#MYCOLOR)
G=Green(#MYCOLOR)
B=Blue(#MYCOLOR)
cvar=#MYCOLOR
by AZJIO
Sun Apr 07, 2024 11:53 am
Forum: The PureBasic Editor
Topic: [IDE tool] Tidy
Replies: 4
Views: 492

Re: [IDE tool] Tidy

For Linux without using SyntaxHighlighting.dll I checked on several sources, including adding a check to the code to ensure that the file has not been modified by removing spaces. ;- TOP ; AZJIO EnableExplicit Define UserIntLang ; Define ForceLangSel CompilerSelect #PB_Compiler_OS CompilerCase #PB_O...
by AZJIO
Fri Apr 05, 2024 12:15 am
Forum: Feature Requests and Wishlists
Topic: Keep same CurrentDir if run from taskbar
Replies: 13
Views: 497

Re: Keep same CurrentDir if run from taskbar

I use it like this: CurDir$ = GetPathPart(ProgramFilename()) CreatePreferences(CurDir$ + "~Test.pref") You don’t have to get the path and then trim it, you do it once by storing it in a variable and then use it instead of calling functions. Macro CurDir() GetPathPart(ProgramFilename()) End...