Pelles C > Bug reports
STDMETHODIMP_(ULONG) breaks the function browser
(1/1)
algernon_77:
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:
--- Code: ---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;
}
--- End code ---
Regards!
Pelle:
I will look at this when I have some more time...
Navigation
[0] Message Index
Go to full version