[implemented] constant(s) #PB_Compiler_Executable ...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
infratec
Always Here
Always Here
Posts: 7591
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

[implemented] constant(s) #PB_Compiler_Executable ...

Post by infratec »

Hi,

I have to find out if the program is compiled as GUI or console program.
The code can run as 'daemon' or in the systray

so a constant which reflects the compiler options would be nice:

Code: Select all

CompilerSelect #PB_Compiler_Executable 
 CompilerCase #PB_Executable_GUI
 CompilerCase #PB_Executable_Console
 CompilerCase #PB_Executable_DLL
CompilerEndSelect
Bernd
Last edited by infratec on Fri Jan 11, 2013 10:36 am, edited 1 time in total.
User avatar
Demivec
Addict
Addict
Posts: 4261
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: new constant(s) #PB_Compiler_Executable ...

Post by Demivec »

Isn't that already possible in v.5.10b2?
- Added: Compiler Constants: #PB_Compiler_ExecutableFormat (with #PB_Compiler_DLL, #PB_Compiler_Console, #PB_Compiler_Executable)
infratec
Always Here
Always Here
Posts: 7591
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: [implemented] constant(s) #PB_Compiler_Executable ...

Post by infratec »

:oops: :oops: :oops:

since I don't 'work' with betas for our productive programs, I missed that.
So I hope 5.10 stable will released soon :D

Bernd
Post Reply