COM DCOM

  Home  Computer Programming  COM DCOM


“DCOM COM frequently Asked Questions by expert members with experience in COM DCOM. So get preparation for the DCOM COM job interview”



25 COM DCOM Questions And Answers

21⟩ What is a moniker?

An object that implements the IMoniker interface. A moniker

acts as a name that uniquely identifies a COM object. In

the same way that a path identifies a file in the file

system, a moniker identifies a COM object in the directory

namespace.

 208 views

22⟩ Define and explain about COM?

COM (Component Object Model) technology in the Microsoft

Windows-family of Operating Systems enables software

components to communicate. COM is used by developers to

create re-usable software components, link components

together to build applications, and take advantage of

Windows services.

 207 views

23⟩ Suppose we have object B and aggregated object C (in- proc server), created by B. Can you access any interface of B from C? What?s the difference between aggregated and contained objects?

For the first question, Yes, we can since the QueryInterface

() rules of thumb suggest that if we can query an interface

of C from B, we should be able to query the viceversa.

The IUnknown implementation of both the objects has to do

the 'magic'.

For the second question, Aggregation bounds outer and inner

objects together and gives the user the interface pointers

of either objects to access it directly so that the user

never knows the objects are aggregated.

But when containment is used, the interface of inner object

never exposed to the client directly rather the outer

object receives the calls and forwards internally. Here

also, the user doesn't know the objects are contained.

 219 views

24⟩ What is In-proc?

In-proc server is a COM component, when instance is the

server is loaded into the caller process space. In-Proc

server can be easily identified by .dll extension.

Out-of-Proc server is a COM component that run in its own

process space and for any instances created by the users, a

proxy is created within the users process space. Proxy is

responsible for interacting with the server to carry out

operation on behalf of the client. (.exe extension).

 215 views