title: C++ copy #define to char array
body: <p>I have the following declaration:</p>
  
  <pre><code>#define ERROR   0x01
  ..
  UINT32 res=ERROR;
  </code></pre>
  
  <p>Is it possible, given just the variable <code>res</code>, to copy the string <code>"ERROR"</code> into a char array?</p>
  
  <p><strong>CLARIFICATION</strong>:</p>
  
  <p>Maybe I wasn't clear enough.
  I'm calling a DLL which return values. 
  Those values can be interpreted like this:</p>
  
  <pre><code>switch (res)
  {
      case ERROR:
       strcpy(arr, "ERROR");break;
      case ... 
  }
  </code></pre>
  
  <p>since there are many options and the <code>switch</code> will be huge, I wandered maybe there is a shortcut... </p>