ASP Programming Question:

Download Job Interview Questions and Answers PDF

Can I use COM objects from a .NET Framework program?

ASP Programming Interview Question
ASP Programming Interview Question

Answer:

Yes. Any COM component you have deployed today can be used from managed code, and in common cases the adaptation is totally automatic.
Specifically, COM components are accessed from the .NET Framework by use of a runtime callable wrapper (RCW). This wrapper turns the COM interfaces exposed by the COM component into .NET Framework-compatible interfaces. For OLE automation interfaces, the RCW can be generated automatically from a type library. For non-OLE automation interfaces, a developer may write a custom RCW and manually map the types exposed by the COM interface to .NET Framework-compatible types.

Download ASP Programming Interview Questions And Answers PDF

Previous QuestionNext Question
How do in-process and cross-process communication work in the Common Language Runtime?Can .NET Framework components be used from a COM program?