When you create a new custom page, at a minimum you need to create a page factory—a class that implements IClassFactory. (You can use ClassFactoryImpl as a base class for your factory.)
Related Topics
IFactoryRegistry Interface
void Register(LPCTSTR type,
IClassFactory *pFactory)