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

后端 未结 8 1046
醉梦人生
醉梦人生 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:36

    I was having this issue when I open the project on Windows 7 64-bit environment, it works correctly on win XP machine. I did a very simple change in project file earlier it says

    Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0; MSCOMCTL.OCX
    

    I changed 2.1 to 2.0 because I have seen it like that in many forums and it worked like charm. The updated reference in VBP file is

    Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX
    

提交回复
热议问题