Hi!
Can somebody help me out?
I get a syntax error, when I try to compile this code.
The syntax error indicates,that I'm missing something before the else if(riid==IID_IX).
Can somebody help me out? Thanks!
if (riid == IID_IUnknown)
*ppvObject = static_cast<IUnknown*>
else if(riid == IID_IX)
*ppvObject = static_cast<IX*>(this);
else if(riid == IID_IY)
*ppvObject = static_cast<IY*>(this);
else
{
ppvObject = NULL;
hr = E_NOINTERFACE;
}
Can somebody help me out?
I get a syntax error, when I try to compile this code.
The syntax error indicates,that I'm missing something before the else if(riid==IID_IX).
Can somebody help me out? Thanks!
if (riid == IID_IUnknown)
*ppvObject = static_cast<IUnknown*>
else if(riid == IID_IX)
*ppvObject = static_cast<IX*>(this);
else if(riid == IID_IY)
*ppvObject = static_cast<IY*>(this);
else
{
ppvObject = NULL;
hr = E_NOINTERFACE;
}