First, OCX control development
1, using the IDE version: VS2010
2. Develop OCX control based on MFC technology.
3. Basic OCX Development process
3.1, open vs 2010 New project, select MFC Template, "MFC ActiveX Control" "Visual C + + project", enter the name, all the way to the default.
3.2, the next face how to add OCX
JS Call OCX Control:
A. Register OCX control, regsvr32% control path%\ name. ocx
B. If the registration is successful, you can find the registered control name in the registration table.
C. Open Registry Editor, there is an edit in the menu bar and then choose to find the input control name, you can find the control,
and assign an object CLASSID, or you can find
To the users of cool dog software to detailed analysis to share the cool dog Remove OCX file method.
Tutorial Sharing:
If Kugoo is installed in the default directory, make sure that the computer does not have any windows open: Please type regsvr32 "c:\program Files\kugoo3\kugoo3downxcontrol.ocx" in the start--> run Then you can delete it casually.
Well, the above information is small weave to the cool dog of this software users bring
Get the DOM object in the webpage when OCX is initialized, and ocx initializes the dom object.
During OCX initialization, SetClientSite is called and the IOleClientSite object is passed in.
1 CComQIPtr
Based on the IOleClientSite object, we can get the IOleControlSite object, and then get the DOM object of OCX in t
Release date: 2013-03-20Updated on: 2013-03-21
Affected Systems:Easewe ftp ocx ActiveX Control 4.6.02Description:--------------------------------------------------------------------------------Bugtraq id: 58622Easewe ftp ocx is an easy-to-use ftp activex component that supports all standard ftp functions.Easewe ftp ocx 4.6.02 has multiple Insecure Methods in the
Recently working on a WEB project. You need to call OCX to connect the card Reader. Didn't want to use OCX technology. Because the ActiveX technology is produced by microsoft. This causes the entire system to use only IE browser (other browsers can support OCX calls via plugins). But trying a very many method calls client DLL discovery is not going to make Sense.
Recently in a WEB project, you need to call OCX to connect the card reader. Originally do not want to use OCX technology, because the ActiveX technology is produced by Microsoft, so that the entire system can only use IE browser (other browsers can be in the form of plug-ins to support OCX calls). But trying a lot of ways to invoke client DLL discovery is not goi
the difference between the 1.exe,ocx,dll
Analysis: EXE is an executable program, and OCX as a window control (the control is OCX, such as button), DLL is a function, variables, classes packaged in the library
OCX form is as follows:
Each of the diagrams is an OCX control (I
JS Support OCX Control Events (event), when the OCX control defined event occurs, JS can catch the event and the event to handle the corresponding.
Personal understanding, is actually the response of the event by WHO to complete, OCX control itself is certainly achievable, JS provides this mechanism so that JS can also complete
JS Support OCX Control Events (event), when the OCX control defined event occurs, JS can catch the event and the event to handle the corresponding.
Personal understanding, is actually the response of the event by WHO to complete, OCX control itself is certainly achievable, JS provides this mechanism so that JS can also complete
This thing I have wanted to write before, but after I write "Make OCX", "MFC Application OCX", the HTML call OCX has been unsuccessful, for a long time, are almost giving up. Yesterday, the leader needed my side. A function that launches an external application through a browser is limited to the company's ignorance of the OC
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: regsver32Regsv
ActiveX and OLE are com-based applications whose file suffixes generally end with DLL and OCX. ocx, as a special DLL file, has a certain user interface and Event Response, the DLL file is only a collection of methods and properties.
1. Introduction to DLL
DLL, dynamic link library, or dynamic link library is a set of modules that contain functions and data and can be used by other applications.ProgramSh
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
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
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
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
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.