Delen via


CCmdTarget::GetDispatchIID

Gets the primary dispatch interface ID.

virtual BOOL GetDispatchIID( 
   IID* pIID  
);

Parameters

  • pIID
    A pointer to an interface ID (a GUID).

Return Value

TRUE if successful, otherwise FALSE. If successful, *pIID is set to the primary dispatch interface ID.

Remarks

Derived classes should override this member function (if not overridden, GetDispatchIID returns FALSE). See COleControl.

For more information, see Knowledge Base article Q185720, "HOWTO: Provide Type Information From an MFC Automation Server." Knowledge Base articles are available in the MSDN Library Visual Studio documentation or at https://support.microsoft.com.

Requirements

Header: afxwin.h

See Also

Reference

CCmdTarget Class

Hierarchy Chart

Other Resources

CCmdTarget Members