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)