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