i need to inherit an interface with abstract methods , in VB/c# we simply override methods from our interface while there is no need to code for IUnknown or IDispatch methods
but in c++, after inheriting interface in class & overriding methods in interface, when i tried to instantiate derived class i am getting following error
error C2259: 'Imyinterface' : cannot instantiate abstract class
1> due to following members:
'HRESULT IUnknown::QueryInterface(const IID &,void **)' : is abstract
'ULONG IUnknown::AddRef(void)' : is abstract
'ULONG IUnknown::Release(void)' : is abstract
so i need to override/define IUnknown and IDispatch methods e.g. addref,Release,QueryInterface,invoke,gettypeinfo
as they appears to be standard functions ,where can i get their code/definitions e.g.ATL or or any typelib? or any references where i can get code/examples of above methods