Regsvr32 registers OCX and reports an error. The dllregisterserver fails to call and the error code is 0x80040200.

Source: Internet
Author: User


It was hard to compile the ActiveX demo. After searching for CLSID for a long time, various methods were written in. ILD:

// Ctestctrl class information [UUID (D36A2461-0660-4409-99BD-386CDF50E6A5)] coclass test {[Default] dispinterface _ Dtest; [default, source] dispinterface _ dtesteven ts ;};

The UUID in it is.


However, ActiveX does not appear on the HTML page. You need to use regsvr32 E: \ MFC \ test \ debug \ test. OCX registers for the service. According to "Win + R" on the Internet, enter it in the running box and press enter to display the prompt.

Result:


It is a permission issue. When you use the Administrator permission to run cmd, enter regsvr32 E: \ MFC \ test \ debug \ test. ocx in cmd and press Enter:


Finally, the demo is displayed in HTML.


It seems that Windows and Linux are the same, and system-related permissions are required...

Regsvr32 registers OCX and reports an error. The dllregisterserver fails to call and the error code is 0x80040200.

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.