Windows 10 & mscomm32.ocx run time error

Discussion in 'Software' started by papergion, Aug 17, 2015.

  1. papergion

    papergion Private E-2

    Hi
    I have some old programs, developed in VB6 that use the serial port with mscomm32.ocx
    This programs works fine on windows XP, 7, 8, 8.1
    After windows 10 installation this happens:
    - Program start normally
    - When i click a button, the program do this steps:
    open the serial port (no errors)
    try to read a serial character (no errors)
    send a serial character (no errors)
    try to read an answered serial character and receive the error:

    "run time error 8020" "Error reading comm device"

    - I have RE-registered mscomctl.ocx and mscomm32.ocx -> nothing change
    - I have RE-installed usb/serial driver -> nothing change

    The device work fine using a standard communication utility like "putty".

    Any suggestion?

    thanks
     
  2. papergion

    papergion Private E-2

    Did someone have experiences in windows 10 with VB6 programs that read / write the serial port ?
     
  3. djwim

    djwim Private E-2

    Papergion, any luck with getting VB6 using the serial port under Windows 10? I have the same problem with VB6/Win10 and a PIC board emulating a serial port. Everything works fine under windows 7, but not under windows 10. From what I read after some Google'ing, it appears to be a problem in mscomm32.ocx, but I can't find any solution.
    Simply reading from the port using "inpbuf = Mscomm1.Input" when characters are received, produces the error "run time error 8020: Error reading comm device"
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds