title: how to handle exceptions in C# DLL loaded by C++
body: <p>I have a DLL that is created in C# for the purpose of providing a COM interface to a third-party C# library.  I have a C++ program that uses that COM interface so that it can communicate with the C# library.  Sometimes, exceptions get thrown on the C# side and all I get back on the C++ side is an HRESULT from the COM invocation that says means "exception occurred" (or something to that effect).  Is there any way for me to get the entire exception information so that I can print an informative message to my C++ app's log?  If not, is there anything I can do on the C# side to intercept all exceptions before they trigger whatever mechanism returns the HRESULT to C++ so that I can log them on the C# side?</p>