title: How to throw exception in VIsual C++ using a wchar_t string?
body: <p>I have legacy code which I am incrementally porting to Unicode characters in Visual C++ (wchar_t).  I've encountered this bit of code that I'd like to convert:</p>
  
  <pre><code>char tmp[256];
  sprintf(tmp, "stuff");
  throw exception(tmp);
  </code></pre>
  
  <p>I want to change it to something like this (this gives me a compile error on exception):</p>
  
  <pre><code>wchar_t tmp[256];
  swprintf(tmp, "stuff");
  throw exception(tmp);
  </code></pre>
  
  <p>So far I haven't found any document to give me the Unicode equivalent for throw exception, can anyone help me?</p>
  
  <p>Of  course I could convert my "tmp" back into a char string, but that just seems silly to have to do that.</p>