Lib GetProgramParameters

Developed or developing a new product in PureBasic? Tell the world about it.
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Lib GetProgramParameters

Post by Gansta93 »

Hello,

This is my new lib, GetProgramParameters. With this you'll be able to know parameters which have been passed to your program as you examine a directory.
To download it, click here.
Image

TSSoft said it doesn't work, and I don't understand wy. If it is the same for you, can you examine the sources and say me why it doesn't work?

Thx in advance.
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

Well TSSoft is right, here when I call ExamineProgramParameters() I get a nice and warm crash.

I might check the source later if I have time. I believe you have an initialization lack of / error and you also need error handling / checking ;).
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
User avatar
Kiffi
Addict
Addict
Posts: 1503
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Lib GetProgramParameters

Post by Kiffi »

Hello Gansta93,

what are the difference between your lib and PB's ProgramParameter()?

Greetings ... Kiffi
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

I can answer you: his lib is meant for lazy people (well, yes).. So you don't have to extract each parameter by hand.. but just do a simple call and get the parameters returned.

This has been done already (at least from my side) But I dont believe its worth for a lib, but for an include only. (Again, I prefer to include my own code than use libraries, just for the comfyness, no thats not being lazy thats not depending on other's libraries - you never know if they'll stop developing it or when they'll fix those nasty bugs it has - ).
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

dagcrack wrote: This has been done already (at least from my side) But I dont believe its worth for a lib, but for an include only
Full ACK
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

This is Surely a good way to try hwo to build libs.
Post Reply