title: C++ showing caught exception in MessageDialog
body: <p>I’m currently learning C++/CX, with Windows Universal App, and I want to show a caught exception message in a <code>MessageDialog</code>, however, C++/CX works in a way that I don’t understand, in that I can't convert a <code>char*</code> into a <code>string</code> type, which is what the <code>MessageDialog</code> expects as input.</p>
  
  <pre><code>catch (const std::invalid_argument ex)
  {
     MessageDialog^ ErrorBox = ref new MessageDialog(ex.what());
     ErrorBox-&gt;ShowAsync();
  }
  </code></pre>
  
  <p>I hope you can help me.</p>