What is the use of CComPtr over CComQIPtr in COM?

Viewed 11507

Can any one explain, What is the use of CComPtr over CComQIPtr in COM?

CComPtr<ISampleInterface> Sample1;
CComQIPtr<ISampleInterface> Sample2;
5 Answers
Related