Suggestion: Always create same executable name

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

Kale wrote:
nco2k wrote:@Kale
hmm... whats the name of your firewall??

c ya,
nco2k
ZoneAlarmPro, just right click the app in the program control and select 'changes frequently'. :)
Hmmm, must indeed be a pro feature.
Gosh.... i'm cheap!
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Edwin Knoppert wrote:Gosh.... i'm cheap!
:)
@}--`--,-- A rose by any other name ..
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

As a side-note to all this, I am running Kerio Personal Firewall 4, and if I use
the Standalone GUI Debugger, then Kerio prompts me ON EVERY COMPILE
that the app has changed; but if I use the Integrated IDE Debugger, then it
doesn't prompt me with each compile... does this mean the Integrated IDE
Debugger is using the same exe name with each compile? Interesting!

(Off-topic: Kerio is discontinuing their firewall at the end of 2005. :cry:).
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post by Froggerprogger »

Hi.
I see a problem there when using a fixed filename:
what is, if a PB-program is compiled to PBTempFile.exe and started, and then another PB-program should be compiled.
The other one couldn't compile then because it cannot overwrite the other running program's exe-file.
%1>>1+1*1/1-1!1|1&1<<$1=1
Jellybean
User
User
Posts: 95
Joined: Wed Aug 24, 2005 7:33 pm

Post by Jellybean »

New app: PureBasic0.exe
New app: PureBasic1.exe
New app: PureBasic2.exe
Closed app: PureBasic1.exe
New app: PureBasic1.exe
New app: PureBasic3.exe
Closed app: PureBasic2.exe
New app: PureBasic2.exe

And so on.
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

Then you should have PB project files.. which states a compile name for the exes ;) thats the tidy way of doing it. that'd be my way of doing it.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

dagcrack wrote:Then you should have PB project files.. which states a compile name for the exes ;) thats the tidy way of doing it. that'd be my way of doing it.
Yes, just specify a compile name per program then compile away to that named exe. Simple.
--Kale

Image
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post by Froggerprogger »

As an alternative PB could simply compile by default a file named
c:\Directory\myProgram.pb
to an exe with same name and in same directory:
c:\Directory\myProgram.exe
%1>>1+1*1/1-1!1|1&1<<$1=1
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Kale wrote:
dagcrack wrote:Then you should have PB project files.. which states a compile name for the exes ;) thats the tidy way of doing it. that'd be my way of doing it.
Yes, just specify a compile name per program then compile away to that named exe. Simple.
Yes.
@}--`--,-- A rose by any other name ..
okasvi
Enthusiast
Enthusiast
Posts: 150
Joined: Wed Apr 27, 2005 9:41 pm
Location: Finland

Post by okasvi »

why not just use somekind of compiler directive?

eg.

CompilerEXENAME = use_this_exename_always

and use it top of your source... ?
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

okasvi wrote:why not just use somekind of compiler directive?

eg.

CompilerEXENAME = use_this_exename_always

and use it top of your source... ?
Good idea!
ARGENTINA WORLD CHAMPION
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

PB wrote:As a side-note to all this, I am running Kerio Personal Firewall 4, and if I use
the Standalone GUI Debugger, then Kerio prompts me ON EVERY COMPILE
that the app has changed; but if I use the Integrated IDE Debugger, then it
doesn't prompt me with each compile... does this mean the Integrated IDE
Debugger is using the same exe name with each compile? Interesting!

(Off-topic: Kerio is discontinuing their firewall at the end of 2005. :cry:).
?!?! Doesn't Kerio use application checksum verification? :?:

Sygate Personal Firewall does, so it doesn't matter if you keep the same name of the exe, it going to ask every time you recompile. Hmmm - I don't now if it is possible to set a rule for a specific filename only. Have to take a look!
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

either an option or a compiler directive would do nicely

yes, za checks if the app has changed, and yes you can tell it that it shouldn't check that, and yes i do some network programming, so yes i'd like such an option :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

is there a chance we'd ge this?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply