Home | Overview | Details | Sample
To prepare an MFC ActiveX Control program for use
Note The build process automatically registers an ActiveX control in the registry. But you can use the following procedure to manually register an ActiveX control in the registry if needed.
To manually register an MFC ActiveX Control
Registering a control adds the following information to the Registration Database:
Controls built with the MFC ActiveX control classes are self-registering because two entry points in the control’s executable, DLLRegisterServer and DLLUnregisterServer, are automatically added when ControlWizard creates the control’s files. As their names imply, DLLRegisterServer and DLLUnregisterServer respectively add and remove the control’s registration information in the registry.