Recently, the OCX control has been used in automated testing, so we have been paying attention to relevant content. After learning it, I realized that although there are still many problems to be solved even though I only use rft to call the OCX control. Today, I contacted Jacob's function: QueryInterface. It took two hours to figure out how to use it .......
To use QueryInterface (), you must know the IID.
message "cannot open the file MK: @ msitstore :\****. CHM "may cause this fault because it is hhctrl in your system. OCX files are lost or are hhctrl. if OCX is overwritten, you can copy one from the same computer or the installation disc and register hhctrl again. ocx file: The procedure is as follows: Step 1: Exit all running programs and click Start> program.
When selecting folders in web application development, this is troublesome for web programmers. Because of local security restrictions, JS cannot access local files, folder selection is generally avoided, when I was writing a program, I also encountered the same problem. I started to try to use JS to traverse files, and there was no way to get the result, practice has proved that the best solution is to write an OCX control by yourself, so you only ne
the Project Properties dialog box, configure "all deployments. On the "deployments properties-> General" tab, select "use MFC in a static library" for "use of MFC" to automatically package the relevant libraries of MFC and controls during compilation. The selection of "Character Set" depends on the specific situation. Note that "Unicode Character Set" and "Mulity-Byte Character Set" are completely different in character processing (character encoding is different, multibytetowidechar or widecha
capicom, which is registered using the regsvr32.exe Capicom. dll command if it is not found)
For more information about how to use. NET to develop Activex controls, see my other article (including source code download): ActiveX printing Control Implemented by C #.
Emphasize two points: 1. After selecting "register for com inerop" in the "generate" item of ActiveX project properties, local debugging will automatically register the control (windows7 needs to run the project as an administrator
, if it is written here (you can modify it), you should set the generated Keyfile. copy the SNK file to the project directory to ensure that the SNK file can be found during compilation. In this way, the compiled dll can be written to GAC:Gacutil-I yourdll. dll
If your project references other control or DLL without strong names, you need to perform the next step.
2. Add a strong name to a control or DLL without a strong name
Two tools are used here. Net comes with tlbimp and aximp. Tlbimp conve
ActiveX control cannot be registered during VB engineering.
You must have encountered this problem when working on the VB project. When adding controls to VB, project → parts → browsing. After adding components you need, "*. ocx cannot be registered as ActiveX control. At this time, you may register it with regsvr32, But it prompts "*. loading ocx control failed. No matter whether you put it in system32 or
out of the FSO component, but this is not possible. When I searched the internet, many people said that this ActiveX control was provided by IIS, And I was dizzy, is there a problem with my IIS? I am dizzy when I copy the program to the server system for debugging and still report the same error. I don't know which file this component corresponds ~
Today, I asked the experts in our group this question, saying that the corresponding file should be msinet. O
Everyone in doing VB project must have encountered this problem, when adding controls in VB, engineering → parts → browsing, after adding the parts you need, pop-up "*.ocx can not be registered as ActiveX Control" dialog box. At this time, you may go to register it with Regsvr32, but it also prompts "*.ocx control load Failed", whether you put it in System32 or in system64 (Win7 64-bit), whether you registe
Basic concepts of 1.ActiveX An ActiveX control can be thought of as a very small server application that cannot run on its own and must be embedded in a container program and run with that container. This container includes Web pages, application forms, etc... The suffix name of the ActiveX control is OCX or DLL. Usually in the form of OCX and Dynamic Library co-packaged into a cab or EXE file placed on the
Public Property Let GetInfo (ByVal New_getinfo as String)
Txtinfo. Text () = New_getinfo
PropertyChanged "GetInfo"
End Property
Private Sub Command1_Click ()
Label2.Caption = GetInfo ()
End Sub
' Load the property value from the memory
Private Sub usercontrol_readproperties (propbag as PropertyBag)
Txtinfo. Text = Propbag.readproperty ("GetInfo", "Text1")
End Sub
' Write attribute values to storage
Private Sub usercontrol_writeproperties (propbag as PropertyBag)
when the compiled ocx file is registered. By default, vs.net 2008 automatically registers the compiled ocx file after compilation. Right-click the project name and select "properties". In the displayed dialog box "deployments properties-> linker-> General ",Register outputYou can configure whether to automatically register OCX after compilation, as shown in:
Certainly, Regsvr32 is no stranger to everyone. It can always be seen in some computer tutorials or computer magazines, but such a high appearance rate "Little Star" is very mysterious in the eyes of many of us. It was rarely introduced in general articles, at most, I just gave a few articles to explain how to use it to solve common problems. Many of my friends may have used Regsvr32 many times under the guidance of some articles, however, I still don't know about it. Today, I will use this arti
When compiling Delphi applications, ActiveX controls are often encountered [Note: OCX controls or DLL-type libraries], which provide a simple operation path for application development. However, these programs are faced with ActiveX Control registration issues while being released.
Solution: 1. Using the installer to create a package file will usually increase the size of the program itself. When the system reinstalls the package, it must be re-instal
During my work over the past few days, I think everyone may feel a headache for loading ActiveX controls in VB6.0. For example, sometimesWhen you open a project, a prompt box indicating that the project cannot be loaded or loaded is displayed. When you want to use a control, you cannot find it in VB6.0 ...... This situation is really annoying !!!
Of course, I have certainly encountered such problems when writing these things, but I have forgotten the phrase "not to be the motive force of discov
Some time ago the company did a relatively large project, need to use the OCX control, I plant most of the projects are used C#.net, and the WinForm program bar with the OCX interface is relatively simple, but JavaScript call OCX interface, but and WinForm usage somewhat different, In fact, it can be found that: the difference is not big.This article mainly elabo
Some time ago the company made a relatively large project, need to use OCX control, I plant most of the projects are used C#.net, and WinForm program with OCX control interface is relatively simple, but the JavaScript call OCX interface, but and WinForm use a little different, In fact, it can be found that: the difference is not big.The author of this article mai
following to the oninitdialog () initialization function:Bool ctestdlg: oninitdialog (){Cdialog: oninitdialog ();Cbitmap BMP;BMP. loadbitmap (idb_bitmap2 );M_brbk.createpatternbrush ( BMP );BMP. deleteobject ();Return true; // return true unless you set the focus to a control}In the Open Class Wizard, find the wm_ctlcolor message, reload the corresponding function onctlcolor (), and add the following:Hbrush ctestdlg: onctlcolor (CDC * PDC, cwnd * pwnd, uint nctlcolor){Hbrush HBr = cdialog: onct
, the ocx file or DLL file of the ActiveX control should be attached, and before running the application, you must first register the ActiveX control in the system registry. Note: Some ActiveX controls use other DLL files. These files are also required. You can use regsvr32.exe to register ActiveX controls, which can be found in windows. You can also use tregsvr.exe In the BIND directory in the delphidevelopment environment directory to register the s
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.