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
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top