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
Manual registration:
Step 1: Use the registration tool regsvr32 in Windows to register the OCX control, click "start"-> "run", and enter the following in:
Regsvr32 Control path/mscomm32.ocx
Step 2: manually create a primary key entry in the Registry: click "start" and "run", enter the Regedit command in the registry, find hkey_classes_root/licenses, and add the primary key4250e830-6ac2-11cf-8adb-00aa00c0
When Uca is disabled, registry OCX files with regsvr32 may sometimes fail to find the specified module.
In fact, OCX lacks necessary DLL dependent files.
Solution: Use dependency to open an OCX that cannot be successfully registered and check whether the DLL it depends on exists (the missing DLL is the yellow-colored question mark). If no, test the missing DLL
Although MS provides us with a variety. net framework library, our program C # development brings great convenience, but sometimes, some control libraries with specific functions still need to be provided by a third party or written by themselves. When Dll references are required, we usually add them to the project by adding references, and then we can use them as conveniently as we use our own classes. However, some Dll library (OCX) files must be re
Affected Versions:
Apple QuickTime Player 7.6.7 (1675)Vulnerability description:
Apple QuickTime is a popular multimedia player. QuickTime ActiveX Control (QTPlugin. ocx) implements IPersistPropertyBag2: Read (1000E330) to process the received param :. text: 1000E330. text: 1000E330; ================== s u B r o u t I N E ====================== =======================================. text: 1000E330. text: 1000E330. text: 1000E330 sub_1000E330 proc ne
If the OCX control contains a non-modal dialog box, when OCX is displayed in IE, it often does not receive tabs, direction keys, and backspace keys. All these messages are intercepted by the IE container. For this problem, Ms provides a solution: first:
Int cmyactivexctrl: oncreate (maid)
{
If (colecontrol: oncreate (lpcreatestruct) =-1)
Return-1;
Error message: the OCX component "shdocvw1.0 version 1.0" cannot be loaded. The component or Type Library File Name Is shdocvw. DLL, the digital signature is "{8856f961-340a-11d0-a96b-00c04fd705a2} #0". Make sure that the component has been installed in windows.Details: The OCX support file "C:/Windows/system/COM. Run" cannot be loaded "!
1. Run the Task Manager (what? I don't know where it is? CTRL +
Debugging OCX controls in IE8
By default, IE8 works in multiple processes, so debugging cannot be performed by default:
Disable the IE protection mode to prevent ie from opening the web page in multi-process mode. Otherwise, the IE process started by the debugger is different from the IE process on the web page and cannot be interrupted.
When changing the Registry to multi-process operations, the IE process started and the IE process loaded with
Recently, I browsed the csdn web page (not just csdn, but other websites may not find the rule), and roaming always unexpectedly popped up an error dialog box, A serious error has been blocked. The error address (fault address: xxxx: XXXX) is returned, and the error file is flash9e. OCX, and then Maxthon is disabled, which is annoying,
1. We suspect that flash plug-in flash9e. ocx is damaged. solutions fo
Cannot register DLL/OCX: Regsvr32 failure solution, ocxregsvr32
When installing some programs, the failure to register DLL/OCX: Regsvr32 may often occur. I am going to teach you how to solve this problem.
It is actually very easy to introduce. The system lacks something (The VB6.0 Runtime Library file is missing). Just download it.
The download link on the official Microsoft website is in "Notes "
An error occurred while registering the ActiveX Space developed with VC ++. The following message is displayed when you register the space with regsvr32 testocx. ocx:Loadlibrary ("testocx. ocx") failed-the specified module cocould not be found
View testocx. ocx with depends and find some files missing
When I copy the corresponding files from the development machine to the test machine and depends again,
Error | loading | resolution
When browsing Web pages with IE, you often encounter flash9 plug-in loading errors. If you choose to continue, the CPU takes up to 90% or more seconds before the Web page shuts down automatically. If you turn off the Flash9.ocx, do not load, flash can not see.
How to solve?
Method One:Re-register the following DLL file, you point "start", "Run" on the desktop:regsvr32 Shdocvw.dllregsvr32 Shell32.dll (Note this command)reg
Assume that the created ocx project is named AgentRest and the event to be added is OnPreviewCallRequest. 1. agentRest. add [id (1)] OnPreviewCallRequest (long lCtrlID, BSTR lpcils) to the idl file; [cpp] [uuid (UID), helpstring ("Event interface for AgentRest Control")] dispinterface _ dagentresteven ts {properties: // Event interface has no properties methods: [id (1)] OnPreviewCallRequest (long lCtrlID, BSTR lpcils);} 2. agentRestCtrl. h and AgentR
COM technology is also a standard way to package downloadable code (which is what ActiveX controls do). Even methods of interacting with the native OS can be specified using COM, for example, in Windows and Windows NT, where new APIs are used, most of which are defined as COM objects. It can be seen that COM, although originated from compound documents, but it is effective for many software problems, it is at the bottom of the basic technology. In a word, COM is a language-independent component
AxHost.Next you had to add the control to the form's Controls collection so it was visible and usable. You cannot call any interface methods until the control instance are created, that doesn ' t happen until you ' ve added the CO Ntrol and the form ' s Load event has fired.Next you has to use reflection or the dynamic keyword to obtain a reference to the interfaces implemented by the control, In the need to set properties or call methods. That's difficult to get right, and you'll want to write
It is said that delphi5 has always had this bug with Delphi7, and I don't know if it has been changed in a later version.
I use Delphi7.
I don't know much about delphi. ocx is also used to catch ducks. I cannot understand the cause of this bug, but I did solve the problem. I will explain the solution below (in fact, I also searched the website and sorted it out a little)
1. Go to the Delphi installation directory and find the source \ VCL
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.