"Reprint" ActiveX control development based on MFC (2)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.