Strange behavior

yvad yannurov at gmail.com
Tue Mar 25 09:15:54 PDT 2008


John C Wrote:

> yvad Wrote:
> 
> > John C Wrote:
> > 
> > > yvad Wrote:
> > > 
> > > > QueryInterface of type HRESULTWindows (GUID * riidriid, out void* ppvObject ppvObject) overrides but is not covariant with QueryInterface of type HRESULT(GUID * riidriid, void* ppvObject ppvObject)
> > > 
> > > Further to my other reply ... The compiler is complaining because the function signatures don't match - one is lacking an "out" attribute. But the code you posted isn't missing the "out". Did you change the code before posting it here?
> > 
> > I attached original files
> > 
> 
> Compiles OK for me.
> 
> Be aware that "delete this" in your ref counting code will not free any memory. You should override AbstractUnknown's new and use malloc, then release the memory with free. Nor will COM objects get garbage collected.

Sorry. The error appears only in Eclipse.Descent compilation.
Thanks for "delete this". I will investigate it.



More information about the Digitalmars-d-learn mailing list