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.