Everyone in doing VB project must have encountered this problem, when adding controls in VB, engineering → parts → browsing, after adding the parts you need, pop-up "*.ocx can not be registered as ActiveX Control" dialog box. At this time, you may go to register it with Regsvr32, but it also prompts "*.ocx control load Failed", whether you put it in System32 or in system64 (Win7 64-bit), whether you register with the administrator, the result ... When there's no result. That's probably your system. The DLL dynamic link library that the OCX control relies on is missing.
Another asked, how can I know this OCX control depends on what DLL file? It is also recommended that you use the Dependency Walker tool (click to download).
When you use Dependency Walker to open the OCX control (take Avphone3.ocx as an example), the following figure:
such as the following MSACM32.DLL, MSVFW32. DLL and so on is the DLL file that it relies on, your system lacks which DLL file, the corresponding front which small square will become yellow and has a question mark. If so, then obediently to download the corresponding DLL file and then register, then try to register your OCX control, is not successful!
Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/vb/