Two ways to register MSCOMM32 controls

Source: Internet
Author: User

When we are in VC or VB or VS environment based on the development of MSComm control software released, is not a very cool feeling, can get someone else's computer to run your software, but when you transplant the past but found that software can not click on the move (don't laugh, I'm developing C # This is the case with the software) or it appears as shown:


This situation generally occurs in the Windows7 version, which means that MSCOMM32 is not registered, we can choose two methods to solve, one way is when we install vc++6.0/ VB6.0, if an ActiveX control item (custom installation) is selected, the Mscomm control is automatically installed on the computer and has 3 more files under the System folder: MSCOMM.SRG, MSCOMM32.OCX,MSCOMM32.DEP;

At this point, there are two ways to do this, both of which are mutually reinforcing and that together we can see whether or not you have successfully registered:


The first method: You must first prepare the accessories for the MSCOMM32 control, at least as I have shown:


Then is how to successfully register it, under the current file, create a new Notepad file, the content is:

Copy mscomm*.*%windir%\system32\/y
Regsvr32%windir%\system32\mscomm32.ocx/s
REG ADD "hkcr\licenses\4250e830-6ac2-11cf-8adb-00aa00c00905"/V ""/d "Kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun"
Pause

Then name it: register. cmd

Click Register. CMD, register success!!!

---------------------------------------------------------------

The second approach:

Download these three files Mscomm.srg, MSCOMM32.OCX,MSCOMM32.DEP; after placing them under C/windows/system32, register the OCX control with the registration tool under Windows regsvr32

Click "Start", "Run", and then fill in the

Regsvr32 C:\Windows\System32\Mscomm32.ocx, the following success message will appear:


After completing the above program, manually create a new primary key entry in the registry: first click "Start", "Run", then fill in the regedit command to open the registry, find Hkey_classes_root\licenses, Add primary key to: 4250e830-6ac2-11cf-8adb-00aa00c00905

and set the content to: KjljvjjjoquqmjjjvpqqkqmqYkypoqjquoun

So we can finish the registration.




Two ways to register MSCOMM32 controls

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.