Using regsvr32/u/s/n/I dllname. dllname indicates the ActiveX control file name, we recommend that you copy the following parameters to the system folder before installation:
/U-anti-registration control
/S-no matter whether the registration is successful or not, the prompt box is not displayed
/C-console output
/I-Skip the control option for installation (different from registration)
/N-do not register the control. This option must be
/I option used together
For example, if you want to registe
-whether the registration is successful or not, no prompt box is displayed /C-console output /I-Skip the control option for installation (different from registration) /n-do not register the control, this option must be used with the/I option for example, I want to register an amovie. OCX control, enter regsvr32 amovie. OCX, you only need to use regsvr32/u amovie to register it.
The firefox browser calls the ocx method written in C ++, firefoxocxOcx method written in C ++ in firefox
When communicating with hardware or third-party controls, the BS architecture usually uses JS scripts to call the OCX plug-in. This method can be used in IE browsers. The IE version must be later than 6.0 and earlier than 11.0. Before calling OCX, You need
Win7 64-bit system registration OCX controlIntroduction: The first two days of system problems, causing the development environment a lot of plugins need to be re-installed,When I fix a few errors for WinForm, an error occurs when the installation control is resolved.It's not always loaded,Solution:1. First copy XXXX. OCX file to the "C:\Windows\SysWOW64" directory. (XXXX.
The following is an example of an HTML call. classid is obtained by packaging it with the package tool that comes with VB.
Classid = "CLSID: FA2B1B95-359E-4320-BAB5-286450B9D863"Codebase = "cti_client1100504.cab # version =,">
OCX localization Configuration
1. Create a setup. reg file with the following content:
Note: ": range" = "192.168.1.222" is the Server IP address.
Windows Registry Editor Version 5.00[HKEY_CURRENT_USER
VB6 allows you to easily compile OCX controls and DLL components. To use DLL components on your website, you can directly use Server in ASP. createObject ("project name. you can call this component on the server. The use of OCX is complicated because it needs to be downloaded to the client. The following are some of my experiences:Pack OCX into an internet p
Need to set up the php.ini file, find this line com.allow_dcom=true, put COM component support enabledusing PHP to invoke the OCX control, this is not a problem, but in reality, the use of Flash avoidance method is more general. The real use of OCX is not much, and the data is relatively small, from the Internet to see a successful example:Actually call OCX or wh
Control VB6 can easily write OCX control and DLL components, to use the use of DLL components in the Web site is very simple, directly in the ASP using Server.CreateObject ("project name. Component Name") can be called on the server side of the component. OCX use is because of the need to download to the client and become more complex, here are some of my experience:
its registration function (DllRegisterServer, DllUnregisterServer) directly in the memory address.The programming method is:1. Use Windows API function LoadLibrary to load ActiveX controls;2. Use the GetProcAddress function to get the registration function DllRegisterServer (logoff function is DllUnregisterServer) pointer in the ActiveX control;3. Use the CallWindowProc function to execute an ActiveX control registration function (DllRegisterServer, DllUnregisterServer) loaded into memory.Examp
Inno Setup is a really good lightweight installer. The reason why I used this software to install the installation package is that Visual Studio comes with a dependency on the dot NET Framework 2.0, and the graphical interface is sometimes used to render the cloud. Inno Setup is much more refreshing. You can package and release your program by directly modifying the built-in example. During the Inno Setup process, I encountered a problem of installing the OC
When OCX initializes, it calls SetClientSite and passes in the IOleClientSite object.1 Ccomqiptr spSite (pclientsite); 2 ccomdispatchdriver ecdisp; 3 Spsite->getextendedcontrol (ECDISP);As above code, according to the IOleClientSite object, we can get IOleControlSite object, and then through the IOleControlSite object Getextendedcontrol method can get OCX in the Web page DOM object.Note : If you
Delphi writes the Dll,ocx if Tthread.synchronze (Proc) is used, which can cause thread deadlock, because the main thread in the EXE cannot be awakened,Synchronze does not enter the EXE main thread message queue.The following program automatically solves this problem by joining the Dll,ocx project file and using Tthread.synchronze (PROC) in Dll,ocx without writing
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
How to solve?
Method One:Re-register the following DLL file, you point "start", "Run" on the desktop:
regsvr32 Shdocvw.dll
regsvr32 Shell32.dll (Note this command)
regsvr32 Oleaut32.dll
regsvr32 Actxprxy.dll
regsvr32 Mshtml.dll
regsvr32 Urlmon.dll
Note: The second command does not have to lose, you can restart Windows after you finish the command, and then re-enter the second command if it is found to be invalid.
Method Two:It is also invalid if a method is used to re-register regsvr32 Olea
The client is not really useful, because such OCX to run, you must have digital signature, but also need to agree to install, or you will be prompted every time, what is not safe and so on.
Create an ActiveX control in VB and select the ActiveX Control Interface Wizard in the Add-in menu (if not, add one to the Add-in manager)
You can define the method you want here, the property, the event, and if you want to invoke the client Script, map to the mem
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.