0

I am writing application on C++ .NET in Visual Studio 2008. I want to ask if there is standard macros to know if application is in Debug or Release mode.

For example I want to write something like this:

#ifdef DEBUG
System::Windows::Forms::MessageBox::Show("Debuge Mode")
#endif
Deduplicator
  • 44,692
  • 7
  • 66
  • 118
Viktor Apoyan
  • 10,655
  • 22
  • 85
  • 147

1 Answers1

3

Visual Studio predefines _DEBUG as the debug macro.

Puppy
  • 144,682
  • 38
  • 256
  • 465