다음을 통해 공유


DECLARE_OLECREATE

Enables objects of CCmdTarget-derived classes to be created through OLE automation.

DECLARE_OLECREATE(class_name )

매개 변수

  • class_name
    The actual name of the class.

설명

This macro enables other OLE-enabled applications to create objects of this type.

Add the DECLARE_OLECREATE macro in the .h module for the class, and then include that module in all .cpp modules that need access to objects of this class.

If DECLARE_OLECREATE is included in the class declaration, then IMPLEMENT_OLECREATE must be included in the class implementation. A class declaration using DECLARE_OLECREATE must also use DECLARE_DYNCREATE or DECLARE_SERIAL.

요구 사항

Header: afxdisp.h

참고 항목

참조

IMPLEMENT_OLECREATE

DECLARE_DYNCREATE

DECLARE_SERIAL

개념

MFC 매크로 및 전역