Lost Password?

  #1 (permalink)  
Old 11-17-2006, 11:13 AM
dirkfirst dirkfirst is offline
Programming Professional
 
Join Date: May 2006
Posts: 333
Rep Power: 10
dirkfirst is on a distinguished road
Default Debug Mode

If I am in debug mode I want to display a message box, what is the variable that determines if I am in debug?

Code:
if (debug) {
   MessageBox::Show("Debug");
}
??
__________________
DirkFirst
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-22-2006, 09:02 AM
Paradine Paradine is offline
Learning Programmer
 
Join Date: Oct 2006
Posts: 48
Rep Power: 7
Paradine is on a distinguished road
Default

I'm not sure I understand. Why don't you just create a static variable and set that to true or false. If you are in debug, set to true. Then use your if() statement
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-28-2006, 05:18 PM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 410
Rep Power: 10
Void is on a distinguished road
Default Determine if you are in debug mode

Use [Conditional("Debug")]

Code:
[Conditional("Debug")]
private void whatever(){
MessageBox.Show("Debug");
}
__________________
Void
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-18-2007, 09:52 PM
stephen0606 stephen0606 is offline
Newbie
 
Join Date: Sep 2007
Posts: 8
Rep Power: 0
stephen0606 is on a distinguished road
Default

i've download the visual c++ from the microsoft website in express edition but y cannot compile?? izit dis is d feature donot own by express edition or i miss download something???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-09-2007, 08:11 PM
NeedHelp NeedHelp is offline
Programming God
 
Join Date: May 2006
Posts: 527
Rep Power: 11
NeedHelp is on a distinguished road
Default

What error do you get when you try to compile?
__________________
I Need Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Project Debug Database Chan C# Programming 1 05-03-2007 11:59 AM
Visual Studio 2005 and Windows Vista Jordan General Programming 3 01-22-2007 03:21 PM
Debug Vs. Release NeedHelp C# Programming 1 07-12-2006 09:44 PM
What Is A Union ravs2k6 C and C++ 2 07-08-2006 01:14 PM
Variable to Debug Window Void C# Programming 3 07-04-2006 08:26 AM


All times are GMT -5. The time now is 03:47 PM.

Contest Stats

John ........ 87.50000
dargueta ........ 75.00000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads