DECLARE_OLECREATE( class_name )
#include <afxdisp.h>
Parameters
class_name
The actual name of the class (not enclosed in quotation marks).
Remarks
Use the DECLARE_OLECREATE macro to enable objects of CCmdTarget-derived classes to be created through OLE automation. 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, 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.
See Also IMPLEMENT_OLECREATE, DECLARE_DYNCREATE, DECLARE_SERIAL