This command just HAS to be!

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

This command just HAS to be!

Post by josku_x »

Hellooo!!!

Well, as I have started to comfort me in PureBasic, I found that you can enter version information but it's ugly hard, "go to compiler options select version tab etc...", so I would like PB more if the version info could be attached to a file with commands!

when I make some PB file and I save it with some version info, when I open the PB file in notepad I see at the end something like this:

Code: Select all

; IDE Options = PureBasic v3.94 (Windows - x86)
; ExecutableFormat = Windows
; CursorPosition = 1
; Folding = 5
; EnableXP
; Executable = mygame.exe
; IncludeVersionInfo
; VersionField0 = 1,0,0,1
; VersionField1 = 1,0,0,1
; VersionField2 = josku_x
; VersionField3 = My  Game
; VersionField4 = 1
; VersionField5 = 1
; VersionField6 = My Game example by josku_x
; VersionField7 = mygame
; VersionField8 = mygame.exe
I would like PB if those things could be made in commands like:

Code: Select all

IncludeVersionInfo(VersionField0,.......VersionField8 [,VersionField9....])
Sounds prettttttyyyyy goood, I marry PB if it has this, it would be easier for people to add version info also it wouldmake my life 50% better :D

Also, I would like to have this kind of commands also:

Code: Select all

EnableXPSkinSupport(WindowID(0))  ; This would be to enable XP skinning support for the given WindowID..
string$ = stringreplaceall(string$,a,b) ; This would replace all "a" letters to "b" in the string string$.
And this is the last enhancement I would like in PB:

Attach files in the EXECUTABLE. Like having data files, a user attaches for example "test.txt" with the executable and then executes it like this:
DataFileRead("test.txt")

also many other commands relating to this would be nice, for example add, delete etc.. so people would not stick many resources with the EXE, but they would have the resources IN the EXE.


Add those and PB will be the world's best language :D:D:D:D:D
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

oh yes also, don't forget DataFileExport("test.txt", "C:\sometext.txt") that shuld export datafile test.txt to C:\sometext.txt :D
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Ever heard of ReplaceString()?
~I see one problem with your reasoning: the fact is thats not a chicken~
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Heh, I just declare a #Version constant in my code. Its better that way. Anyone can go in and change a version on an exe file easier than searching through disassembled code finding everywhere a constant is used for the version.
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

I have not heard ReplaceString, couldn't find in manual? thanks anyway, what you think of my wishes?
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

~I see one problem with your reasoning: the fact is thats not a chicken~
Post Reply