C++/CX - manually throwing exceptions and return the throw-Message to a String^ RRS feed

  • Question

  • hello,

    i am trying to manually throw exceptions and want to use the message of the exception for a textblock.

    The excp-string (String^) is filled but not with the text i used for throwing the exception. Am I throwing the exception the wrong way? thanks!

    try { throw "test-throw"; } catch (Exception^ ex) { // excp is a String^ used to set the Text of a textblock excp = ex->Message; }

    Friday, April 26, 2013 2:29 PM