-
Mscomct2.ocx
I develped an app using VB5.
There was a control mscomct2.ocx that I used in my app.
I had to format my computer and I do not have permision now to use this control? I was able to do so before?
It seems that mscomct2.ocx is a VB6 control.
All my application is based on this control.
I know there is a way to register this control that is not VB5 native. VB5cli.exe will not work because this will only register VB5 controls. VB6cli.exe will not work eather beacause I do not have VB6.
Please Help.
-
Try regsvr32.ocx
The OCX controls are registered to the system using regsvr32.exe (located under "windows\system" directory for Win 9x and under "windows\system32" in Win 2k and XP).
After registering the control you may use it inside VB.
The format of regsvr32.exe is as follow:
regsvr32.exe - display options
regsvr32 "X:\...\...\mscomct2.ocx" - register control
regsvr32 /u "X:\...\...\mscomct2.ocx" - unregister control
Where the "X:\...\...\" is the path to ocx file.
I hope this will help you.