COleObjectFactory::OnCreateObject

Called by the framework to create a new object.

virtual CCmdTarget* OnCreateObject( );

Return Value

A pointer to the created object. It can throw a memory exception if it fails.

Remarks

Override this function to create the object from something other than the CRuntimeClass passed to the constructor.

Requirements

Header: afxdisp.h

See Also

Concepts

COleObjectFactory Class

COleObjectFactory Members

Hierarchy Chart

COleObjectFactory::COleObjectFactory

CRuntimeClass Structure