The function prototype for QuerytInterface is this:
And calling the QueryInterface function is like this:Code:STDMETHODIMP QueryInterface( REFIID riid, void** pIFace )
What's confusing me is the casting of the address of pIStats to void**Code:pICreateCar->QueryInterface( IID_IStats, reinterpret_cast<void**>( &pIStats ) );
reinterpret_cast<void**>( &pIStats )
What exactly is void** in this context?? Why do we cast the address of the interface ptr to void**??
Thanks!




Reply With Quote