Coding Idea.. Release/Debug

  • Thread starter Thread starter VJ
  • Start date Start date
V

VJ

I need a few lines of code to execute only when I compile the Release EXE.
These lines of code should not compile into the Debug exe.. what's the best
way to do this?

VJ
 
* "VJ said:
I need a few lines of code to execute only when I compile the Release EXE.
These lines of code should not compile into the Debug exe.. what's the best
way to do this?

In the project properties check the option "Define DEBUG Constant". Then you
can use this code:

\\\
#If Debug Then
...
#Else
...
#End If
///
 
Back
Top