Original: http://iysm.net/?p=118
2. Build and test the control
OK, now we can build this project first, of course, until now we just use the system automatically generated a control project, what function is not, just an empty frame.
After a few seconds, the project should be built smoothly. The control is also automatically registered to the system. So how do you test this control? Of course, you can build a new project, such as a dialog box program, in the dialog Resource Editing window, right side of the toolbox in the right-click menu, click the option.
From the COM component in the Pop-up window, locate the control that we just generated, tick check.
This control is then present in the Toolbox.
You can then use this control by dragging the mouse over the dialog box.
In addition to this approach, VS also provides a convenient control testing tool. There is an ActiveX Control Test container under the tools in the VisualStudio menu.
Click the New Control button in the toolbar.
In the Insert Control dialog box, locate and select our control.
You can then test the various functions of the control in this container.
"Reprint" ActiveX control development based on MFC (2)