mscomm32.ocx with WIndows 10 RRS feed

  • Question

  • I am using mscomm32.ocx with Visual C++ for serial communications and have been for years. With windows 10, I am unable to read data from any comm port.

    I have looked all over and it seems that no one is saying that it is working for them either. Several people have changed tools to resolve this issue.

    Can someone from Microsoft tell me if this is going to be fixed?

    Wednesday, January 20, 2016 9:47 PM

All replies

  •   Hi  

     It is not clear that what kind of application you had created on win10 ? how to read data ? when you can’t read the data , what does this application outputs information ? Are you sure that data has been sent successfully ?

    Based on my research .  I have not found the issue that using mscomm32.ocx is unable to read data from any comm port on win 10 .

    Best regards ,


    Thursday, January 21, 2016 6:09 AM
  • I am using it in a VC++ MFC application. Same code works on all windows versions except 10.

    When data has been received by the port and i call GetInput() an exception "Error reading comm Device" is thrown.

    I can acces the modem on the given port with hyperterminal just fine.

    Here is one person that gave up on mscomm32.ocx


    Thursday, January 21, 2016 7:12 AM
  • I am using it in a VC++ MFC application. Same code works on all windows versions except 10.


    Could you please provide a demo for us to test it .if we find the issue on win10, we can post the issue on it :https://connect.microsoft.com/

    Best Regards,


    Tuesday, February 2, 2016 8:00 AM
  • mscomm32.ocx is not an integral part of Windows 10. What Version of this ocx are you using?

    By the way. What type of Project are you using? I do not understand why you are using an OCX for the Serial communication. The API to Access the Serial port is not difficuilt and you will find a lot good C++ classes on i.e. CodeProject.

    Best regards


    Note: Posted code pieces may not have a good programming style and may not perfect. It is also possible that they do not work in all situations. Code pieces are only indended to explain something particualar.

    Tuesday, February 2, 2016 4:56 PM
  • Here is my way to solve this.


    Good Luck!


    Wednesday, July 4, 2018 9:08 AM
  • mscomm32.ocx is among the VB6 runtime files that Microsoft says are supported on Win10 according to https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-basic-6/visual-basic-6-support-policy
    Wednesday, July 4, 2018 4:28 PM