GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 89 of 165    Print  
Using COM Component in .Net
As most of you know that .Net does not encourage the development of COM components and provides a different solution to making reusable components through Assemblies. But, there are a lot of COM components present which our .Net application might need to use. Fortunately, .Net provides an extremely simple approach to achieve this.

This is achieved by using ‘Wrapper Classes’ and ‘Proxy Components’. .Net wraps the COM component into .Net assembly technically called ‘Runtime Callable Wrapper’ or RCW. Then u can call and use your COM component just as a .Net (or C#, if u are using C#) Assembly.



  
Total Answers and Comments: 1 Last Update: January 13, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 13, 2006 06:42:30   #1  
samiksc Member Since: October 2005   Contribution: 233    

RE: Using COM Component in .Net

.Net provides facility of using COM components for backward compatibility and reusability for existing components. COM components cannot be used directly in .net since they do not follow .net structures and rules. .Net has to create a runtime callable wrapper (sort of a proxy) for using the COM components.

There are two ways in which the RCWs may be created --

  1. Through Add reference -> COM tab in a .net project. This creates a private RCW for the project.
  2. Through command line utility 'tlbimp' -- it allows creation of shared RCW for a COM component which is required for several applications. It also allows specifying RCW name and namespace.

 
Is this answer useful? Yes | No

 Related Questions

Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

A web service is a software component that exposes itself through the open communication channels of the Internet. Applications running on remote machines, on potentially different platforms, can 
Latest Answer : WebSevice is a reusable software component (ClassLibraries) which exposes the businesslogic in them, platform independent, technology independent, language on which it is created, can be transported on HTTP (which is stateless) and provides the xml (Universal ...

Assemblies are of two types 1. Private Assemblies 2. Shared AssembliesPrivate Assemblies: The assembly is intended only for one application. The files of that assembly must be placed in the same folder 
Latest Answer : 1)Private assembly2) Share Assembly3) Satellite Assembly ...

Metadata is information about a PE. In COM, metadata is communicated through non-standardized type libraries. In .NET, this data is contained in the header portion of a COFF-compliant PE and follows 
Latest Answer : In Simple words, Meta data is set of tables that describe  the types and its members  defined in the assembly and the types and its members referenced in the assembly. Manifest is another set of tables that describe the assembly attributes like ...
Tags : Metadata

A web farm is a multi-server scenario. So we may have a server in each state of US. If the load on one server is in excess then the other servers step in to bear the brunt. How they bear it is based 
Latest Answer : There is two or more than two server in webfarm method, and we also have a router in this technique, which is basically is used to route the a particular incoming  request .Where as in case of a webgarden we have a one server having more than one processor.There ...

As most of you know that .Net does not encourage the development of COM components and provides a different solution to making reusable components through Assemblies. But, there are a lot of COM components 
Latest Answer : .Net provides facility of using COM components for backward compatibility and reusability for existing components. COM components cannot be used directly in .net since they do not follow .net structures and rules. .Net has to create a runtime callable ...

ActiveX control is a special type of COM component that supports a User Interface. Using ActiveX Control in your .Net Project is even easier than using COM component. They are bundled usually in .ocx 
Latest Answer : ActiveX control is actually a COM component. For using a COM component in a .net project you can follow one of the following two procedures --For private COM components -- In the .net project click Add reference and navigate to COM tab. Select the COM ...

1. First of all, VB.NET provides managed code execution that runs under the Common Language Runtime (CLR), resulting in robust, stable and secure applications. All features of the .NET framework are 
Latest Answer : VB.Net offers following advantages --OOPs features like inheritance and polymorphismInterfaces, namespaces, delegates.Net security featuresScalability due to ADO.Net (ADO.Net objects are represented using XML which is scalable)Facility to create a dataset ...

Visual Basic .NET has many new and improved language features — such as inheritance, interfaces, and overloading — that make it a powerful object-oriented programming language. As a Visual 
Latest Answer : Migrating from VB to VB.Net implies following advantages --High level OOPs features like inheritance, polymorphism and delegates become available.Also available are features like namespaces, interfaces, assemblies and attributes.Migrating to ADO.Net ...


 Sponsored Links

 
Related Articles

Component Assembly Model

Introduction Before the concept of SDLC, different software programs were built to cater to different business and consumer needs. That was decades ago and it’s safe to say that millions of programs have been created for different reasons, for different needs. Developers always work on a
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

HR Interview - Telephone Interview Etiquette

Telephone Interview Etiquette When you conduct a telephone interview for a job it is important to show the proper etiquette Not only is it important it is critical is you wish to be hired by the company There are a number of things you will want to do and other things should never be done mosgoogle
 

HR Interview - How To Succeed At HR Interviews

How To Succeed At HR Interviews There are a number of things you will need to do in order to make sure you pass the interview process Your appearance is something that you will want to pay close attention to Even if you feel that your appearance shouldn t be a factor in whether or not you re highere
 

HR Interview - Do's and Dont's in a HR Interview

Do s and Dont s in a HR Interview There are a number of things that you will want to avoid during the HR interview process While some of these things are directed at the interviewer the other things are directed at the applicant If interviewers fail to follow the proper procedures throughout the int
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape