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
  • 43,322
  • 6
  • 62
  • 109
Viktor Apoyan
  • 10,487
  • 22
  • 83
  • 145

1 Answers1

3

Visual Studio predefines _DEBUG as the debug macro.

Puppy
  • 141,834
  • 35
  • 244
  • 454