It was Churchill, 1st Lord of the Admiralty. Carry on up the Dardanelles, what?Did Nietzsche have pointers in mind when he wrote that?
COM?A singular void that is dissimilar from its application in C or C++
A Void
HRESULT __stdcall Option2::QueryInterface(const IID& iid, void** ppv)
{
if (iid == IID_IUnknown)
{
// trace("Return pointer to IUnknown.");
*ppv = static_cast<IOption2*>(this);
}
else if (iid == IID_IOption2)
{
//trace("Return pointer to IOption2.");
*ppv = static_cast<IOption2*>(this);
}
else
{
// trace("Interface not supported.");
*ppv = NULL;
return E_NOINTERFACE;
}
reinterpret_cast<IUnknown*>(*ppv)->AddRef();
return S_OK;
}