Thank you for your answers.
I think my problem is, it doesn't work with relative path...
How to get a complete path of a folder regardless where the user executes the program ?
Edit, ok, I got it. GetCurrentDirectory() do the job, thank you.
Search found 342 matches
- Tue Oct 01, 2019 7:20 pm
- Forum: Coding Questions
- Topic: How to use RunProgram to open a file with default program ?
- Replies: 9
- Views: 1818
- Mon Sep 30, 2019 8:04 pm
- Forum: Coding Questions
- Topic: How to use RunProgram to open a file with default program ?
- Replies: 9
- Views: 1818
How to use RunProgram to open a file with default program ?
Hi...
Every thing is in the title...
Do you know how to open a picture or a pdf file with default app, by using RunProgram ?
Every thing is in the title...
Do you know how to open a picture or a pdf file with default app, by using RunProgram ?
- Mon Sep 30, 2019 6:20 pm
- Forum: Windows
- Topic: ExplorerListGadget Large Icons
- Replies: 11
- Views: 5325
Re: ExplorerListGadget Large Icons
2019, I am looking for large icon for picture files...
I feel really fooled.
I feel really fooled.
- Sun Sep 08, 2019 7:24 pm
- Forum: Coding Questions
- Topic: TreeGadget How to know Item Number ?
- Replies: 2
- Views: 769
Re: TreeGadget How to know Item Number ?
Thank you... It will do the job.
- Sun Sep 08, 2019 7:15 pm
- Forum: Coding Questions
- Topic: TreeGadget How to know Item Number ?
- Replies: 2
- Views: 769
TreeGadget How to know Item Number ?
I would like to figure out what is the item number of each item because I need to use them to SetGagdetItemData. Actually, AddGadgetItem use -1 for position and I don't know how to get the item number assigned. How do I do that ? If OpenWindow(0, 0, 0, 355, 180, "TreeGadget", #PB_Window_Sy...
- Wed Apr 24, 2019 8:01 pm
- Forum: Game Programming
- Topic: Conway's game of life
- Replies: 4
- Views: 4160
Conway's game of life
I realized not every body knows the original cellautomat. [left click] to place cells, [Space] to begin generation. see wikipedia page to learn different patterns: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life Pulsar: https://upload.wikimedia.org/wikipedia/commons/0/07/Game_of_life_pulsar.gi...
- Tue Apr 23, 2019 8:54 pm
- Forum: Game Programming
- Topic: Conway's game of life in music
- Replies: 2
- Views: 6777
Conway's game of life in music
An explanation of Conway's game of life: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life File with code, sound samples and lock's picture: http://dl.free.fr/gIew2zYyY inspiration from here: https://youtu.be/IAiTL6lglXc I'm not a musician so the samples can surely be improved to get something m...
- Fri Mar 22, 2019 9:11 pm
- Forum: Game Programming
- Topic: A* (A star) pathfinding
- Replies: 1
- Views: 3259
Re: A* (A star) pathfinding
Nice
A little suggestion easy to do:
Real lists are not require for Open/Close. You should use a simple flag in an area to check whether the node is in close or open "list" O(1) (it prevents long boring check... O(n))
Also, It's sad Pb doesn't have any native priority list.
A little suggestion easy to do:
Real lists are not require for Open/Close. You should use a simple flag in an area to check whether the node is in close or open "list" O(1) (it prevents long boring check... O(n))
Also, It's sad Pb doesn't have any native priority list.
- Wed Feb 27, 2019 8:54 pm
- Forum: Game Programming
- Topic: What if pb's sprites were objects ?
- Replies: 1
- Views: 2515
What if pb's sprites were objects ?
A small test, turning pb sprites into objects ... Simplified reading of a sprite sheet (we just give the name of the sprite sheet, the line number we want to add with the name of its sub-animation ...) Simple addressing of an animation and sub-animation by a string (for example the animation "H...
- Mon Feb 04, 2019 9:20 pm
- Forum: Coding Questions
- Topic: OpenWindows() Windows TaskBar ?
- Replies: 7
- Views: 1129
Re: OpenWindows() Windows Bar ?
I don't want to show #PB_Window_MaximizeGadge because I don't want users to change my window's size. :wink: Else, if I can get the height of the taskbar It will be enough. Like this but the taskbar apparent. Is it possible ? What about older windows ? If OpenWindow(0, 100, 200, 195, 260, "PureB...
- Mon Feb 04, 2019 9:15 pm
- Forum: Coding Questions
- Topic: OpenWindows() Windows TaskBar ?
- Replies: 7
- Views: 1129
Re: OpenWindows() Windows Bar ?
It's what I am looking for, but i'd like not to use maximise gadget and It seams not to work without it. (windows 10)
- Mon Feb 04, 2019 8:36 pm
- Forum: Coding Questions
- Topic: OpenWindows() Windows TaskBar ?
- Replies: 7
- Views: 1129
OpenWindows() Windows TaskBar ?
How to use Openwindows() in "fullscreen" and keep the windows' Taskbar apparent ?
- Thu Jan 17, 2019 6:06 pm
- Forum: Game Programming
- Topic: Sprite Engine
- Replies: 5
- Views: 4169
Re: Sprite Engine
Looks nice, but could you give us an exemple ?
Does sprite collision works with rotated sprite ?
Does sprite collision works with rotated sprite ?
- Fri Dec 21, 2018 8:50 pm
- Forum: Assembly and C Programming in PureBasic
- Topic: Do you have rules to optimise x86 x64 conversion ?
- Replies: 14
- Views: 12709
Re: Do you have rules to optimise x86 x64 conversion ?
I'll have some times to test your suggestions, Olliver, thank you very much ! :D I'll also try small tests as suggested by Djes, to better understand how it works. Try to store data in continuous memory blocks instead of linking small bunches of memory together like LinkedLists do. This way cache mi...
- Mon Dec 17, 2018 6:11 pm
- Forum: Assembly and C Programming in PureBasic
- Topic: Do you have rules to optimise x86 x64 conversion ?
- Replies: 14
- Views: 12709
Re: Do you have rules to optimise x86 x64 conversion ?
I will get rid of Div by shifting and substracting to obtain the rest... Thank you for pointing this. Concerning memory alignment, it shouldn't be a problem as all my data are 64 bits when I'am in x64 mode, i don't mix different sizes. Nethertheless, what's wrong with my logic ? I have a doubt... Do...