27 return S_OK;
28 }
29
30
protected:
31 IFACE_DATA_ENTRY m_data;
32 };
Analysis
CEndpoint is very simple. Its sole purpose is to provide a way for COM clients to access
a particular record of information.
At line 1, the ATL attribute coclass is specified and asserts that the ATL attribute
provider is to inject the appropriate code to make this a fully functional component
class.The noncreatable IDL attribute is also specified and asserts that this object is not to
be instantiated by COM clients.
Line 2 specifies the beginning of the CEndpoint class declaration.You will notice
the usage of the ATL macro ATL_NO_VTABLE.This macro expands
__declspec(novtable) and its usage optimizes the creation of the class by omitting the
vtable pointer initialization routines ...