共用方式為


DECLARE_OLETYPELIB

Declares the GetTypeLib member function of your control class.

DECLARE_OLETYPELIB(class_name )

Parameters

  • class_name
    The name of the control class related to the type library.

Remarks

Use this macro in the control class header file.

Requirements

Header: afxdisp.h

See Also

Concepts

MFC Macros and Globals

IMPLEMENT_OLETYPELIB