Suppose I call a COM object from a .NET applicaiton, but COM object throws an error. What happens on the .NET end?

Q

Suppose I call a COM object from a .NET applicaiton, but COM object throws an error. What happens on the .NET end?

✍: Guest

A

COM methods report errors by returning HRESULTs; .NET methods report them by throwing exceptions. The runtime handles the transition between the two. Each exception class in the .NET Framework maps to an HRESULT.

2014-12-15, 1743👍, 0💬