שתף באמצעות


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

Question

Tuesday, May 24, 2011 6:55 AM

When I'm trying to register this it gives an error. So somebody please help me in this.Anton Ruwantha

All replies (5)

Tuesday, May 24, 2011 7:37 AM ✅Answered

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


Tuesday, May 24, 2011 7:33 AM

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:45 AM

Thanks for u both. Ya I got through it.Anton Ruwantha


Friday, June 24, 2011 10:54 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.


Wednesday, July 4, 2018 9:06 AM

I got the ANSWER. And I make a Package for solve this.

https://github.com/davidanger/MSCOMM32

You can follow this guide!

Good Luck!

DavidAnger