Search found 1328 matches

by AZJIO
Fri Apr 12, 2024 7:40 am
Forum: The PureBasic Editor
Topic: [IDE tool] Tidy
Replies: 4
Views: 466

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

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

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

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

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

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

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

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

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...
by AZJIO
Thu Apr 04, 2024 11:31 pm
Forum: Coding Questions
Topic: WINDOWS issue : How do you include icons into the exe ?
Replies: 12
Views: 503

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...
by AZJIO
Thu Apr 04, 2024 10:47 pm
Forum: Feature Requests and Wishlists
Topic: Keep same CurrentDir if run from taskbar
Replies: 13
Views: 484

Re: Keep same CurrentDir if run from taskbar

If you run a program from a CMD file, the directory of the CMD file will become the current directory. If you run it from the AkelPad editor, the current folder will be the AkelPad folder. I encountered this back in AutoIt3. Since I was translating the help, I simply added to the description of the ...
by AZJIO
Thu Apr 04, 2024 1:30 pm
Forum: General Discussion
Topic: [IDE tool] Generate procedure local variables
Replies: 3
Views: 533

Re: [IDE tool] Generate procedure local variables

For Linux (without SyntaxHighlighting.dll) download tool parameters: %SELECTION "%TEMPFILE" EnableExplicit #Empty = 1 Global Dim Proc$(0) Global Dim Var$(0) Global Dim StrVar$(0) Global Dim DeclareVar$(0) Global Dim VarPoint$(0) Global NbProc, NbStrVar, NbDeclareVar, NbVar, NbVarPoint Glob...
by AZJIO
Thu Apr 04, 2024 3:48 am
Forum: Coding Questions
Topic: WINDOWS issue : How do you include icons into the exe ?
Replies: 12
Views: 503

Re: WINDOWS issue : How do you include icons into the exe ?

Blue wrote: Thu Apr 04, 2024 3:38 am A text file ? An icon file ? What should the file be or contain ?
exe,dll,ocx,res,cpl,ax,scr,apl
by AZJIO
Thu Apr 04, 2024 3:33 am
Forum: Announcement
Topic: MixPerfect
Replies: 29
Views: 1241

Re: MixPerfect

Martin Verlaan
Now works, checked on Fedora
by AZJIO
Thu Apr 04, 2024 1:51 am
Forum: General Discussion
Topic: Current Resources for beginning PureBasic Programmer?
Replies: 6
Views: 347

Re: Current Resources for beginning PureBasic Programmer?

mk-soft wrote: Wed Apr 03, 2024 5:33 pm F1 and PureBasic example folder ...
+1