Dear Friends,
I have a basic doubt in IUnknown interface.
I have two COM Interfaces IX and IY.Class CA implements these two interfaces.
CA *pCA=new CA;
IUnKnown *pIX=static_cast<IUnknown *>(static_cast<IX *>(pCA));
IUnKnown *pIY=static_cast<IUnknown *>(static_cast<IY *>(pCA))
whether these two pointer will have same contents.
I did it and they contain different addresses.
This contradicts the Concept of COM that whenever u query for IUnknown pointer from any interface,the result will be same.so why the above code gives different addresses.
Waiting for ur Reply
I have a basic doubt in IUnknown interface.
I have two COM Interfaces IX and IY.Class CA implements these two interfaces.
CA *pCA=new CA;
IUnKnown *pIX=static_cast<IUnknown *>(static_cast<IX *>(pCA));
IUnKnown *pIY=static_cast<IUnknown *>(static_cast<IY *>(pCA))
whether these two pointer will have same contents.
I did it and they contain different addresses.
This contradicts the Concept of COM that whenever u query for IUnknown pointer from any interface,the result will be same.so why the above code gives different addresses.
Waiting for ur Reply