The biggest difference between ActiveX Control and window (2 k, XP) in Windows is to compile OCX of two versions and install one on Windows, in this way, you can use the OCX for programming in the EVC environment, and install it on WinCE to use the ocx program for calling.
A simple OCX test is made here, which can be
I.AboutActiveX
ActiveX is Microsoft's strategic object-orientedProgramThe name of technology and tool. The main technology is Component Object Model (COM ). When creating ActiveX programs, the main task is components, a program that can run freely in ActiveX networks. This component is the ActiveX near control. ActiveX is Microsoft's defense against sunmicrosystemsJavaThe function of this control is similar to that of Java applet.
II.ActiveX Development Environment
The FFMPEG-based
OCX packaging cab and signing process1. Package the cab
When creating a cab file, you must include all the relevant files. You can use depends (included in VC) to check the required files. Use the INF file to write these items.1. Create an INF file
Default. inf
Generally, it is in the [version] area at the beginning:
Eg: [version]
Signature = "$ Chicago $"
Advancedinf = 2.0
Next is the most important [Add. Code] area:
Eg: [Add. Code]
Getcertocx.
The following uses the vs2008 development environment as an example:----------------------------------------------------------------------Step 1: Convert the COM interface to a. net interface
Before using mapwingis. ocx in the. NET language, you must convert the COM interface to the. NET interface,ProgramAccess the specific implementation functions in COM through the. NET interface.
Method (1) When mapwingis.
extension. ocx,. CPL, And. DRV are also DLL, although the file extension has changed.You can create a DLL for the following purposes:(1) divide programs into separate modules that can be loaded as needed.(2) store resources specific to languages or regions.(3) Enable your own applications to use the core code library.(4) generate a COM object or ActiveX Control (OCX) in the process ).(5) use the OLE object
is loaded during runtime, the executable module uses the loadlibrary function or the LoadLibraryEx function. The executable module calls the getprocaddress function to obtain the address of the exported DLL function. When linking, Windows searches for a pre-installed DLL group, such as the performance library (kernel32.dll) and Security Library (user32.dll ). Windows then searches for DLL in the following order:1. The directory where the executable program of the current process is located.2. C
VC ++ OCX control registration
Method 1: Run regsvr32 ocxname. ocx in DOS or Windows Command LineExample:Regsvr32 netshare. ocx // register the netshare. ocx control.Regsvr32/u netshare. ocx // unregister the netshare. ocx
JS Event Response example for implementing the OCX control
JS supports events of the OCX control. When an event defined by the OCX control occurs, JS can capture the event and process the event accordingly.
In my personal understanding, it is actually who will complete the event response. The OCX control itself can cer
Register ocxname. ocxExample:Regsvr32 netshare. ocx // register the netshare. ocx control.Regsvr32/u netshare. ocx // unregister the netshare. ocx controlIf the netshare. ocx file is not in the system directory, you must add the complete path before the file name. In additio
#-*-Coding:utf-8-*-scite Eliminate garbled settings: file-, code-, with BOM utf-8# strange garbled! "" Purpose: 1. Encapsulate Excel with too few OCX! Easy to use and less! (Note!!! Iweboffice2006.ocx related to copyright! Here Iweboffice2006.ocx only do study, research, exchange with! If you want to use the purchase of genuine! ) 2. There are too few examples
I. Introduction to the Application of ActiveX:ActiveX controls, which are commonly called OCX controls, are part of ActiveX technology. ActiveX is a Component Object model COM-based technology introduced by Microsoft, including a series of extensions and enhancements to the Windows 32-bit Application programming interface (Win32 API) and Component Object model, with the goal of integrating the computer desktop environment with the Internet environment
Step 1:
Anyone who has used ActiveX knows that ActiveX cannot be recognized and used by the system if it is not registered. Generally, the installer automatically registers the ActiveX control it uses, but what if you need to manually register a widget? If you modify the registration table, it will be too annoying. There is a regsvr32.exe program under the systemfile folder of windows, which is the built-in ActiveX registration and anti-registration tool for Windows. Its usage is:Regsver32
Regsv
Step 1:
Anyone who has used ActiveX knows that ActiveX cannot be recognized and used by the system if it is not registered. Generally, the installer automatically registers the ActiveX control it uses, but what if you need to manually register a widget? If you modify the registration table, it will be too annoying. There is a regsvr32.exe program under the systemfile folder of windows, which is the built-in ActiveX registration and anti-registration tool for Windows. Its usage is:Regsver32
Regsv
You need to set the php. ini file, find this line of com. allow_dcomtrue, and enable the com component to use PHP to call the OCX control. This is not a problem, but in reality, the flash method is more common. There are not many actually used ocx, and there are few materials. We can see a successful example on the Internet: in fact, calling the OCX file is the s
addition to downloadingOCXfile, download the appropriateMFC DLLs, download a large quantity, then the relevant files can be packaged in the server to the client self-extracting installationCABfile. After the modifiedHTMLThe code snippet is as follows:align= "CENTER" classid= "CLSID:7bca18c6-2178-11d2-87c1- 00A024D948FB "Width= "height=" id= "marquee"Codebase= "http://218.168.188.188/scadaweb/Wclnt.cab#version=1,0,0,1 "> EMBED align= "CENTER" classid= "Clsid:7bca18c6- 2178-11d2- 87c1-00a024d
During video recording on a page, When you preview the page, you will always be prompted that the flash10b. ocx add-on fails, resulting in IE being forced to close, which is very annoying. I searched the internet and found out that it was originally an issue with the Adobe Flash Player control. The problem occurred when I loaded IE in version 10.0. According to the Internet, I uninstalled Adobe Flash Player 10.0 and installed Adobe Flash Player 9.0. T
A question:Recently there is a job to integrate a set of old fingerprint attendance machine to the present attendance System (Web system), the problem occurs when the old machine only OCX available, no DLL available; originally thought the simple third party call is OK, but OCX can not be carried, in the implementation of the laborious.B Analysis:1, the original developer, to provide a set of directly calle
Because the OCX control is used in development, if no corresponding ocx file exists on the target machine, it will cause the applicationProgramUnable to run normally, I took a detour when registering the OCX control with installshield2009. I first used the INF file and wrote the rundll32 + inf file name in installscript. In this way, the
First, download the missing file
1, according to the above tips. A comdlg32.ocx file is missing.
2, we first want to download the "Comdlg32.ocx" file online. We can search directly on Baidu to download on it.
3, according to the prompts need to download the "Comdlg32.ocx" file first. We just need to download it.
Second, the installation of documen
register the. dll for Active Directory Schema, type the following command at the MS-DOS prompt:C:\regsvr32 Schmmgmt.dllRegsvr32 is a system fileMany friends have used the Regsvr32.exe command provided under Windows System. Don't look down upon this little command. Sometimes it can help you solve big problems.System fault resolution Small method: System and System comes with software (such as: Ie,wmplayer, etc.) error, most due to dynamic link library (DLL) file or ActiveX control (
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.