Com components use in .net, DOT NET Programming

How can COM Components use in .NET?

The .NET components can communicate with COM using RCW (Runtime Callable Wrapper). The ways with which you can generate RCW are as shown below :-

1)By Adding the  reference in Visual Studio.net. The Wrapper class is generated and placed at the "BIN" directory.

136_COM components.png

2)By Using  Tlbimp.exe yourname.dll.type library import tool.

3)By Using interopservices.System.runtime.Interopservices namespace contains class TypeLib Converter that provides methods to convert COM classes and interface into the assembly metadata.

4)Complete your custom wrappers.If your COM component does not have any type library then the only way to communicate is writing custom wrappers. Which  means communicating directly with the COM components.

Posted Date: 9/21/2012 7:20:09 AM | Location : United States







Related Discussions:- Com components use in .net, Assignment Help, Ask Question on Com components use in .net, Get Answer, Expert's Help, Com components use in .net Discussions

Write discussion on Com components use in .net
Your posts are moderated
Related Questions
What are the ways of parsing XML document? The XML parser sits in between the XML document and the application who want to use the XML document. The Parser exposes a set of wel

What are major difference between classic ADO and ADO.NET? Following are some major differences among both In ADO we have recordset and in ADO.NET we have dataset. In rec

What is Difference between NameSpace and Assembly? Following are the differences among namespace and assembly: Assembly is physical grouping of logical units, Namespace, log

Web application and XML data storage One person should create a library (Java package of classes) for managing the list of bibliography entries, and for saving and loading th


Unity 4 iOS Pro Developer to prepare link.xml Project Description: I'm seeking an iOS developer with a Unity 4 iOS Pro license to prepare a link.xml file that will let my pro

What is the purpose of DOTNET? Dot Net Is a collection of products like C#, ASp.Net, Vb.Net, XML. The purpose of .Net is that we can simply upgrade and degrade our programs whi

What is a class? A class describes all the attributes of objects, as well as the methods that execute the behaviour of member objects. It is a comprehensive data type, which sh

Can we run DOT.NET in UNIX platform? One of the drawbacks of using Visual Studio.NET and the .NET framework to develop applications has been the lack of cross-platform support.

Write a C# program (C# console application) that plays a word game with the user. The program should ask the user to enter the following: • His or her name • His or her age