How can would you create an instance of the object in COM
Answers were Sorted based on User's Feedback
Answer / chandrasekharreddy siddamreddy
To create the instance of COM componet use the following
To access the component that was there in local system use
To access the COM componet remotely use the following API
|Is This Answer Correct ?||3 Yes||0 No|
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 );
[in] A pointer to a creator function.
[in] The IID of the requested interface.
[out] A pointer to the interface pointer identified by
riid. If the object does not support this interface, ppvObj
is set to NULL.
|Is This Answer Correct ?||2 Yes||1 No|
What is In-proc?
C is aggregated by B, which in turn aggregated by A. Our client requested C. What will happen?
What is the difference, if any, between OLE and COM?
Explain transaction atomicity?
What are the purposes of AddRef, Release and QueryInterface functions
What is a moniker ?
Explain queued components.
how you call a dll as a COM dll.
When you call CoInitialize(NULL) function how it works internally.
what is mean by scintific,commercial and business applications? How they differ? Please answer me. Advance thanks.
how do you know it is general dll or com dll
Which tool is used to configure the port range and protocols for DCOM communications?