This works for me.

CComPtr<IMyInterface> pMyInterface;
hr = pMyInterface.CoCreateInstance(CLSID_MyInterface);