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 are the purposes of AddRef, Release and QueryInterface functions
Write a JCL to copy only selected members from a partitioned data set to another partitioned data set. (Use: IEBCOPY)
How do you make a NET component talk to a COM component?
can a COM interface be implemented by more than one COM class in the same COM component?
Explain JIT activation?
how you call a dll as a COM dll.
What should QueryInterface functions do if requested object was not found?
How to Use structs in COM interfaces when Automation compatibility is not an issue?
What happens when client calls CoCreateInstance?
Define and explain COM?
Explain transaction atomicity?
what is far pointer and what are the use of far poiter in com/dcom ?????