.NET Interview questions: - Explain RCW (Runtime Callable Wrapper)?
.NET components communicate with COM using RCW (Runtime Callable Wrapper).
Following are the ways with which you can generate RCW:-
- Adding reference in Visual Studio.NET. See figure below (Adding reference using VS.NET 2005). Wrapper class is generated and placed in the “BIN” directory.
Figure: - Adding Reference using VS.NET 2005
- Using Type library import tool. Tlbimp.exe yourname.dll.
- Using interopservices.System.runtime.Interopservices namespace contains class TypeLib Converter that provides methods to convert COM classes and interface in to assembly metadata.
- Make your custom wrappers. If your COM component does not have type library then the only way to communicate is writing custom wrappers. That means communicating directly with COM components.
Watch the below video, visual studio and .NET tips and tricks 17:- Removing unused namespaces.
See for more stuffs on .NET Interview question
Regards,
Click to view more from author's on .NET Interview question
http://
http://
Contributed by:
Shivprasad koirala Koirala
I am a Microsoft MVP for ASP/ASP.NET and currently a CEO of a small
E-learning company in India. We are very much active in making training videos ,
writing books and corporate trainings. Do visit my site http://www.questpond.com for
.NET, C# , design pattern , WCF , Silverlight , LINQ , ASP.NET , ADO.NET , Sharepoint , UML , SQL Server training and Interview questions and answers
Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=640
Click here to go on website
|