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
Define an event. Whenever an action takes place in a class, that class gives a notification to other classes or objects that are assigned to perform certain tasks. These notifi

13579 3579 579 79 9 How to the logic in code. pls give me Ans.

Describe session handling in a web farm, how does it work and what are the limits ?    In ASP.NET there are three ways to manage session objects. One support the in-proc mechani

Project Description: We have a web based program prepared with .NET C# and Microsoft SQL Server. There are some reports needs to be created. Required Skills. - High Pro

I've some encrypted data list of customers that are stored in a sql server db. These data are encrypted using visual basic, using a specific dll, from what I could see. The work

Which namespaces are required to enable the use of databases in ASP.NET pages? The following namespaces are required to enable the use of databases in ASP.NET pages:     Th

What is the use of DataView? User-defined view of a table is contained in a DataView. A complete table or a small section of table depending on some criteria can be shown by an

ASP.NET/MSSQL/ MVC completing backend solution + integrating with frontend. Project Description: System is used for tracking company's activities through several projects by

Bug Correction and Prediction Project Description: The project is about the prediction of bugs and resolves the bug in the sample program using costriage algorithm. You have

What is the main difference between Gridlayout and FlowLayout? The Grid Layout provides absolute positioning for the controls placed on the page. The Developers that have their