Page 1 of 1

Predefined constant for compilerdirektives. EXE or DLL

Posted: Wed Jun 06, 2012 5:35 pm
by Josh
It would be nice, to have a predefined constant to compare, what my code is compiled. To a EXE or DLL file.

thxs
Josh

Re: Predefined constant for compilerdirektives. EXE or DLL

Posted: Thu Jun 07, 2012 9:47 pm
by Danilo
+1

Code: Select all

#PB_Compiler_Target : Determines the target type for which the program is compiling. It can be one of the following:

  - #PB_Target_Gui       : compiling a GUI     application
  - #PB_Target_Console   : compiling a CONSOLE application
  - #PB_Target_Library   : compiling a LIBRARY ( DLL on Windows )
  - #PB_Target_PureLib   : compiling a PB LIBRARY (will it ever be possible without TailBite?)

Re: Predefined constant for compilerdirektives. EXE or DLL

Posted: Fri Jun 08, 2012 11:56 am
by Josh
In the meantime i have written a workaround for my problem. I'm using a precompiler and with the parameter %EXECUTABLE it was easy to make my own constants for compilerdirectives.

josh