Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can would you create an instance of the object in COM

Answers were Sorted based on User's Feedback



How can would you create an instance of the object in COM..

Answer / chandrasekharreddy siddamreddy

To create the instance of COM componet use the following
WIN32 APIs
To access the component that was there in local system use
following API
CoCreateInstance(clsid,NULL(used for
aggregation),CLSCTX_ALL,Interface_GUID,(void**)
&pRequestedInterface );

To access the COM componet remotely use the following API
CoCreateInstanceEx
(CLSID,NULL,CLSCTX_ALL,COSERVERINFO,Interface_GUID,MULTI_QI*
);

Is This Answer Correct ?    3 Yes 0 No

How can would you create an instance of the object in COM..

Answer / balaji

We can use CreateInstance And CoCreateInstance to create an
instance of the object in COM.

HRESULT CreateInstance(void* pfnCreateInstance,REFIID riid,
void** ppvObj );

Parameters
pfnCreateInstance
[in] A pointer to a creator function.
riid
[in] The IID of the requested interface.
ppvObj
[out] A pointer to the interface pointer identified by
riid. If the object does not support this interface, ppvObj
is set to NULL.
Return Value

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More COM DCOM Interview Questions

Define and explain about COM?

0 Answers  


Once I have developed the com wrapper do I have to still register the com in registry?

0 Answers  


Do COM keep track of all the object references(Accounting)?

3 Answers   Microsoft,


Explain transaction atomicity?

1 Answers  


what is mean by scintific,commercial and business applications? How they differ? Please answer me. Advance thanks.

0 Answers   Excel,


How to Use structs in COM interfaces when Automation compatibility is not an issue?

1 Answers  


What are the different compatibility types when we create a COM component?

1 Answers   TCS,


Explain Futures of COM?

0 Answers  


What happens when client calls CoCreateInstance?

2 Answers   Cap Gemini,


C is aggregated by B, which in turn aggregated by A. Our client requested C. What will happen?

2 Answers  


What is the difference, if any, between OLE and COM?

3 Answers  


Suppose we have object B and aggregated object C (in- proc server), created by B. Can you access any interface of B from C?

0 Answers  


Categories