The following code throws an exception in C ++ and catch in C # C ++
throw std::exception ("a C++ exception");
When I catch in C #, it gives me the following:
[SEHException (0x80004005): External component has thrown an exception.]
this is what i call c ++ code
using Foo.Bar.Sample; //C++ library .... Class1 class1 = new Class1(); //C++ class class1.throwAnException();
Just wondering how can I get a βC ++ exceptionβ in C #
c # exception exception-handling c ++ - cli
jebberwocky
source share