2. |
Read the following code carefully. Which of the following are problems with the code?
|
|
|
|
Please select all the correct answers.
|
|
A.
|
if (riid == IID_IMyComInterface || riid == IID_IUnknown)
|
|
B.
|
else if (riid == IID_IYourComInterface)
|
|
C.
|
*ppv = (IMyComInterface *) this;
|
|
D.
|
AddRef--i.e., (*ppv)->AddRef() --is not called.
|