Use of the mscomm32.ocx control (Serial Communication)

Source: Internet
Author: User

1. register the mscomm32 control, download it online, and copy it to the c: \ windows \ system32 folder. I installed a 64-bit win7 System in C: in the \ windows \ syswow64 folder, open cmd, write the code regsvr32 c: \ windows \ system32 \ mscomm32.ocx, and press enter to prompt you that the registration is successful.

2. in the dialog box, add a control: Open the toolbox-> right-click and select items. After a while, select the Toolbox item. Under the COM component, find the mscomm32.ocx item in Microsoft Communications Control. After selecting the check box, add the item, the space icon is added to the toolbox and can be dragged to the dialog box.

3. The function is to send "Hello world! ", The serial port automatically accepts the serial data. VC ++ program, create a dialog box project, and then add buttons such as "open serial port", "Close serial port", "send data", and "clear data, you do not need to add the received data automatically. You can add an edit box to display the received serial data.

 

Win8.1 registers the mscomm32.ocx communication control and prompts an error multiple times. follow the steps below to register

Error code: 0x8002801c. Run cmd as an administrator.

Use of the mscomm32.ocx control (Serial Communication)

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.