Interview Questions

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

.NET Database ,COM interop,and .NET deployment questions and answers


(Continued from previous question...)

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

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.

(Continued on next question...)

Other Interview Questions