Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Maintains the proper global state when calling methods of an exported interface.
METHOD_PROLOGUE(theClass, localClass )
Parameters
theClass
Specifies the name of the class whose interface map is being implemented.localClass
Specifies the name of the local class that implements the interface map.
Remarks
Typically, member functions of interfaces implemented by CCmdTarget-derived objects already use this macro to provide automatic initialization of the pThis pointer. For example:
class CMySink : public CCmdTarget
{
public:
CMySink();
~CMySink() {};
protected:
DECLARE_INTERFACE_MAP()
// The following block declares an inner class called 'XSinky'
BEGIN_INTERFACE_PART(Sinky, ISampleSink)
STDMETHOD(SinkFunc)();
END_INTERFACE_PART(Sinky)
};
STDMETHODIMP_(ULONG) CMySink::XSinky::AddRef()
{
METHOD_PROLOGUE(CMySink, Sinky);
return pThis->InternalAddRef();
}
Requirements
Header: afxwin.h