Spurious “cannot load control, license not found” error?

后端 未结 2 1592
慢半拍i
慢半拍i 2021-01-28 14:58

When I try to load a form in the designer, it shows \"runtime error 0\" and produces a log file which contains:

Line 15: Cannot load control xxxx; license not fo         


        
2条回答
  •  自闭症患者
    2021-01-28 15:20

    I'm assuming this is a third-party OCX... Many such products came with their own installer which generates the license file; simply copying, and even regsvr32ing the .ocx is not sufficient to use it in the development environment. If you still have the original installation routine, you can try running that to regenerate the license. Failing that, you could look for an appropriately-named .lic file on an existing, working development machine (in \Windows\System32, or the VB6 installation directory, or in the directory into which the .ocx is installed) and manually copy that to the same place on the new development machine.

提交回复
热议问题