The problem of not registering as ActiveX control when doing VB project

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.