共用方式為


CRuntimeClass::m_pfnCreateObject

A function pointer to the default constructor that creates an object of your class.

Remarks

This pointer is only valid if the class supports dynamic creation; otherwise, the function returns NULL.

Requirements

Header: afx.h

See Also

Reference

CRuntimeClass Structure

Hierarchy Chart