This component keeps track of all class factories and services. It implements the IFactoryRegistry interface and is available indirectly through your page’s Container method. In addition, the registry loads extension DLLs. After it loads a DLL, the registry looks for an exported function called RegisterFactories. You must implement this function and in it register the class factories for your pages, tasks, and validators (and any other class factories you want to register). Here is an example from the sample project:
extern "C" __declspec(dllexport) voidRegisterFactories(IFactoryRegistry *factories)
{
Register<LocationPageFactory>(ID_LocationPage, factories);
}
Related Topics