Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
COM_INTERFACE_ENTRY_CACHED_TEAR_OFF
Collapse the table of content
Expand the table of content

COM_INTERFACE_ENTRY_CACHED_TEAR_OFF 

Saves the interface-specific data for every instance.


COM_INTERFACE_ENTRY_CACHED_TEAR_OFF( iid, x, punk )

Parameters

iid

[in] The GUID of the tear-off interface.

x

[in] The name of the class implementing the interface.

punk

[in] The name of an IUnknown pointer. Must be a member of the class containing the COM map. Should be initialized to NULL in the class object's constructor.

If the interface is not used, this lowers the overall instance size of your object.

See COM_INTERFACE_ENTRY Macros for remarks about COM map entries.

BEGIN_COM_MAP(COuter)
   ...
   COM_INTERFACE_ENTRY_CACHED_TEAR_OFF(IID_ITearOff2, 
      CTearOff2, m_pUnkTearOff2.p)
   ...
END_COM_MAP()

Community Additions

ADD
Show:
© 2015 Microsoft