not able to open VB project, getting error “C:\windows\system32\mscomctl.ocx” could not be loaded

后端 未结 8 1148
醉梦人生
醉梦人生 2021-01-23 09:18

I have a VB project was able to work without any issues, but now when i open the project i am getting the error with mscomctl.ocx. I have re-registered the ocx but still am not

8条回答
  •  天涯浪人
    2021-01-23 09:41

    you can also open the project file (.vbp file) in notepad where you see something like the following :

    Type=Exe
    Form=frmComFX.frm
    Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\Windows\SysWOW64\stdole2.tlb#OLE Automation
    Object={648A5603-2C6E-101B-82B6-000000000014}#1.1#0; MSCOMM32.OCX
    Object={5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0; MSFLXGRD.OCX
    Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX
    Form=frmSetup.frm
    Module=modFX; modFX.bas
    IconForm="frmComFX"
    Startup="frmComFX"
    HelpFile=""
    Title="ComFX"
    Command32=""
    Name="comFX"
    

    the lines that start with 'object-' contain the registry key with which the ocx is registered ... you can now open regedit (start - execute - regedit) and search for this key .. be careful though what you do in regedit, you might screw up your visual basic installation or even your complete windows :)

    of course you can also remove visual basic and reinstall it to get the registrations back

提交回复
热议问题