Hello!
Today I was tinkering with a Shell context menu example from the forum and I noticed that STDMETHODIMP_(ULONG) seems to break the function browser.
Replaced it with ULONG STDMETHODCALLTYPE and all is peachy. I'm on W7 x64 with Pelle 10.
Example below:
STDMETHODIMP_(ULONG) CClassFactory_AddRef ( IClassFactory *this )
{
ClassFactoryStruct * pCF = (ClassFactoryStruct*)this;
return ++pCF->m_ulRef;
}
STDMETHODIMP_(ULONG) CClassFactory_Release ( IClassFactory *this )
{
ClassFactoryStruct * pCF = (ClassFactoryStruct*)this;
if ( --pCF->m_ulRef == 0 )
{
free(this);
--g_uiRefThisDll;
return 0;
}
return pCF->m_ulRef;
}
Regards!