Overview: Creating an MFC ActiveX Control Program
ActiveX (formerly OLE) Control programs are modular programs designed to give a specific type of functionality to a parent application. For example, you can create a control such as a button in a dialog or toolbar or on a Web page.
When you use the MFC ActiveX ControlWizard to create an MFC ActiveX Control program, you get a working starter application with built-in functionality that when compiled, will implement the basic features of an ActiveX Control. The starter program will include C++ source (.CPP) files, header (.H) files, and any optional files such as a type library source file (.ODL), a license validation file (.LIC), a Help Source file (.RTF) and so on, that you selected during setup. The code generated in these starter files is based on MFC.
There are three steps to this process. First, following the steps and choosing the options provided by the MFC ActiveX ControlWizard, you define the features of your program. Next, you compile and link the starter program. Finally, you add code to the starter files that the MFC ActiveX ControlWizard created.