--- In advanced_delphi@yahoogroups.com, "mikcaau" <mikc...@...> wrote: > > --- In advanced_delphi@yahoogroups.com, Eduardo C <ecostas@> wrote: > > > > Hi. > > > > My solution was to create two project files with basically the same > files > > but each writing DCUs and EXEs to different directories and with > different > > compiler directives. This way there is no risk of mingling debug and > final > > units and the only price to pay is to remember to add new files to both > > projects and use a little more of disk space. Though I bought Delphi > 2007 > > some time ago, I'm just starting to use it now but plan to do > something like > > that. > > > > Eduardo > > > > > My really simple solution is to use this include file > > here is a sample > {$Define IsBuild} > > {$IfDef IsBuild} > {$O+} {$R-} {$I-} {$D-} {$L-} {$C-} > {$Else} > {$O-} {$R+} {$I+} {$D+} {$L+} {$C+} > {$EndIf} > > > If I doing a delivery build then {$Define IsBuild} > else put all the debugging stuff in > > Then a bit further down I have this > {$IfDef IsBuild} > {$UnDef CheckEncounterPlaceId} > {$UnDef AllowEmergencyShutDown } > {$Else} > //{$Define CheckEncounterPlaceId} > {$EndIf} > > All nice and simple and in one place. I also include or exclude > features and objects at my centralised control > > Mick > Hello Mick (and thanks to all other for helpfull answers !)
Yes, that's seem to me a nice, simple and powerfull solution. But, sorry, I need to know where to put these commands .... ;o( Being a kind of newbie... could you please explain me and maybe other where and how to implement this include ? Many thanks again ! Pietro