- Assume we have a pointer to interface
IF1 in variable pIF1.
- Interface
IF1 has the following IDL definition:
interface IF1 : IUnknown
{
HRESULT X1(INT ix);
HRESULT X2();
}
- Using interface pointer
pIF1, write code to call IF1::X2.
- Write code to call
IF1::QueryInterface to query for interface IF2 using IID_IF2.
- Exercise Scoring
This exercise is worth 20 points; up to 10 points for each code fragment.
- Exercise Submission
Click Submit to submit this exercise.