Page 1 of 1

This command just HAS to be!

Posted: Sun Sep 25, 2005 7:35 pm
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

Posted: Sun Sep 25, 2005 7:37 pm
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

Posted: Sun Sep 25, 2005 8:29 pm
by Killswitch
Ever heard of ReplaceString()?

Posted: Sun Sep 25, 2005 9:35 pm
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.

Posted: Mon Sep 26, 2005 2:23 pm
by josku_x
I have not heard ReplaceString, couldn't find in manual? thanks anyway, what you think of my wishes?

Posted: Mon Sep 26, 2005 2:47 pm
by Killswitch