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
因此,我需要推翻/取消 IUn known 和 IDispatch 方法, 如 adref, Release, Query Interface, invoke, gettyinfo 。
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