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.]
here is how i call the C++ code
using Foo.Bar.Sample; //C++ library
....
Class1 class1 = new Class1(); //C++ class
class1.throwAnException();
Just wondering how can i get the "a C++ exception" in C#
thanks