Thursday, April 2, 2009

COM .Net Interview Questions Part I

1. Interop Services?

Ans. The common language runtime provides two mechanisms for interoperating with unmanaged code:
· Platform invoke, which enables managed code to call functions exported from an unmanaged library.
· COM interop, which enables managed code to interact with COM objects through interfaces.
Both platform invoke and COM interop use interop marshaling to accurately move method arguments between caller and callee and back, if required.

2. How does u handle this COM components developed in other programming languages in .NET?

3. What is RCW (Runtime Callable Wrappers)?

Ans. The common language runtime exposes COM objects through a proxy called the runtime callable wrapper (RCW). Although the RCW appears to be an ordinary object to .NET clients, its primary function is to marshal calls between a .NET client and a COM object.

4. What is CCW (COM Callable Wrapper)

Ans. A proxy object generated by the common language runtime so that existing COM applications can use managed classes, including .NET Framework classes, transparently.

5. How CCW and RCW is working?

6. How will you register com+ services?

Ans. The .NET Framework SDK provides the .NET Framework Services Installation Tool (Regsvcs.exe - a command-line tool) to manually register an assembly containing serviced components. You can also access these registration features programmatically with the System.EnterpriseServicesRegistrationHelper class by creating an instance of class RegistrationHelper and using the method InstallAssembly

7. What is use of ContextUtil class?

Ans. ContextUtil is the preferred class to use for obtaining COM+ context information.

8. What is the new three features of COM+ services, which are not there in COM (MTS)?


9. Is the COM architecture same as .Net architecture? What is the difference between them?

10. Can we copy a COM dll to GAC folder?

No comments: