"C Backend" checks for unused functions and never adds them to the compiled file.
Search found 1333 matches
- 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: 19
- Views: 968
- Tue Apr 16, 2024 5:31 pm
- Forum: Coding Questions
- Topic: Detect TaskBar events [Resolved]
- Replies: 8
- Views: 292
- Tue Apr 16, 2024 4:31 pm
- Forum: Coding Questions
- Topic: Detect TaskBar events [Resolved]
- Replies: 8
- Views: 292
Re: Detect TaskBar events
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 ?
- Tue Apr 16, 2024 2:41 pm
- Forum: Coding Questions
- Topic: Detect TaskBar events [Resolved]
- Replies: 8
- Views: 292
Re: Detect TaskBar events
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.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
- Mon Apr 15, 2024 12:15 pm
- Forum: Announcement
- Topic: PureBasic 6.10 LTS is out !
- Replies: 325
- Views: 40412
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...
- Fri Apr 12, 2024 7:40 am
- Forum: The PureBasic Editor
- Topic: [IDE tool] Tidy
- Replies: 4
- Views: 483
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.
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.
- 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...
- 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.
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.
- 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...
- 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,...
- Sun Apr 07, 2024 2:17 pm
- Forum: Coding Questions
- Topic: How to create constants automatically?
- Replies: 12
- Views: 467
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.
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.
- Sun Apr 07, 2024 1:35 pm
- Forum: Coding Questions
- Topic: How to create constants automatically?
- Replies: 12
- Views: 467
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
- Sun Apr 07, 2024 11:53 am
- Forum: The PureBasic Editor
- Topic: [IDE tool] Tidy
- Replies: 4
- Views: 483
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...
- 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...
- Thu Apr 04, 2024 11:31 pm
- Forum: Coding Questions
- Topic: WINDOWS issue : How do you include icons into the exe ?
- Replies: 12
- Views: 511
Re: WINDOWS issue : How do you include icons into the exe ?
If your task is to create a library of icons for file extensions, then another option will be easier. 1. The new version of "Resource Hacker" has a menu item "Create an empty script" that allows you to save the DLL. Specify extension when saving. 2. The old version of the program...