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|
How to Use structs in COM interfaces when Automation compatibility is not an issue?
what is mean by scintific,commercial and business applications? How they differ? Please answer me. Advance thanks.
What is IUnknown? What methods are provided by IUnknown?
What is the difference, if any, between OLE and COM?
Which tool is used to configure the port range and protocols for DCOM communications?
How do you make a NET component talk to a COM component?
What is In-proc?
What happens when client calls CoCreateInstance?
What are the purposes of AddRef, Release and QueryInterface functions
hi,I have applied for NIC test plz if any one have test paper pattrn plz send me on "email@example.com"
What are the different compatibility types when we create a COM component?
Futures of COM