PC Review


Reply
Thread Tools Rate Thread

Coding Idea.. Release/Debug

 
 
VJ
Guest
Posts: n/a
 
      5th Dec 2003
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


 
Reply With Quote
 
 
 
 
Bin Song
Guest
Posts: n/a
 
      5th Dec 2003
Using conditional constants and compiling.
http://msdn.microsoft.com/library/default.asp
url=/library/en-
us/vbcn7/html/vaconUnderstandingConditionalCompilation.asp

Bin Song, MCP

>-----Original Message-----
>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
>
>
>.
>

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      5th Dec 2003
* "VJ" <(E-Mail Removed)> scripsit:
> 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
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
debug vs release Mel Microsoft VB .NET 4 10th Oct 2008 08:45 PM
Email Coding that I have no Idea what its doing... TheNovice Microsoft Access VBA Modules 0 5th Mar 2008 10:01 PM
Debug and Release Jared Microsoft Dot NET Framework Forms 1 4th May 2006 06:19 AM
Config Mgr Debug/Release and Web.config Compilation debug=true RonL Microsoft ASP .NET 0 8th Apr 2006 04:50 PM
Any idea how to code in Access 2002 to release memory allocation? das Microsoft Access 2 17th Oct 2003 11:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:35 AM.