none
How can I register MSCOMM32.OCX in 64bit OS?

    Question

  • When I'm trying to register this it gives an error. So somebody please help me in this.
    Anton Ruwantha
    Tuesday, May 24, 2011 6:55 AM

Answers

  • Hi,

    I think you are running the 64 bit version of regsvr32

    You need to run the 32 bit version, that can be found in:

    %SystemRoot%\Syswow64 folder.

    Open CMD and go to the specific directory:
    cd \windows\syswow64
    regsvr32 c:\MSCOMM32.OCX

     

    Regards,

    Hassan

    • Proposed as answer by Hassan Tahir Tuesday, May 24, 2011 7:38 AM
    • Marked as answer by ARuwantha88 Tuesday, May 24, 2011 7:43 AM
    Tuesday, May 24, 2011 7:37 AM

All replies

  • Is there a reasaon for using this OCX?  The .Net framework supports a serial port component that is easier to use and doesnt have the sort of installation issues that an old OCX has.

    http://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=VS.90).aspx

     


    Tuesday, May 24, 2011 7:33 AM
  • Hi,

    I think you are running the 64 bit version of regsvr32

    You need to run the 32 bit version, that can be found in:

    %SystemRoot%\Syswow64 folder.

    Open CMD and go to the specific directory:
    cd \windows\syswow64
    regsvr32 c:\MSCOMM32.OCX

     

    Regards,

    Hassan

    • Proposed as answer by Hassan Tahir Tuesday, May 24, 2011 7:38 AM
    • Marked as answer by ARuwantha88 Tuesday, May 24, 2011 7:43 AM
    Tuesday, May 24, 2011 7:37 AM
  • Thanks for u both. Ya I got through it.
    Anton Ruwantha
    Tuesday, May 24, 2011 7:45 AM
  • Also take a look at www.comm32.com which is an MSComm32 compatible OCX which has less hangups with Windows7.

     

    If you are converting or re-writing a VB6 application to .Net then take a look at www.comm64.com That also uses the same syntax as MSComm32 but it is a proper .Net component capable of working with x86, x64 and AnyCPU projects. In other words it can run in native 64bit mode on 64bit versions of windows but will step back to 32bit mode on 32bit OS. Basically it runs in whatever mode your project is targeting. But, as I said, the interesting thing is that it uses the same syntax as MSComm32 so porting older VB applications to .Net is a snip.

    Friday, June 24, 2011 10:54 AM