1.

Suppose I Call A Com Object From A .net Application, But Com Object Throws An Error. What Happens On The .net End?

Answer»

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.

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.



Discussion

No Comment Found