situation, MFC keeps making Assert errors when calling the message (window) processing function in the Child thread. A typical example is CSocket. Because CSocket uses a hidden window to implement false blocking, it is inevitable to use a message processing function. If you use CSocket in a child thread, you may see the assert pop-up.3. Do not register COM components in different threads at the same time. Two threads, one registering 1.ocx, 2.
Recently, I often heard from my friends that I could not open the CHM file, and I often encountered it. After searching online, I will summarize the Methods:1. If the file cannot be opened, you can restore the file association as follows:1. Start running. Enter regsvr32 c: \ windows \ system32 \ hhctrl. ocx. OK. Re-associate the file.2. Execute hh.exe in the Windows directory.Sometimes the CHM file cannot be placed in the Chinese directory. Including
Common controls 6.0 is successful, and there is no problem when you open VB.
Solution 2:
Close VB first, then open cmd, and enter the following statement:
Regsvr32/U % WINDIR % \ system32 \ mscomctl. ocx
Regsvr32 % WINDIR % \ system32 \ mscomctl. ocx
If the first sentence is entered successfully, an error occurs in the second sentence:
This error still occurs during running. It is a public control libr
Method Three: First
try to use the following fix it.
Method Four:
If it is a Windows 7 system:
The problem with flash may be flash.ocx damage. Download the latest Flash Player control from the Adobe Web site and install it.
If the problem remains after installation, please confirm the Flash's. ocx filename: Open the C:/windows/system32/macromed/flash folder to view the specific file name of the.
Solution to failure of the browser to run the JAVA Script 1. Solution to failure of the browser to run the JAVA Script.
Rundll32.exe advpack. dll/DelNodeRunDLL32 % systemroot % System32dacui. dll
Rundll32.exe advpack. dll/DelNodeRunDLL32 % systemroot % Catrooticatalog. mdb
Regsvr32/s comcat. dll
Regsvr32/s asctrls. ocx
Regsvr32/s oleaut32.dll
Regsvr32/s shdocvw. dll/I
Regsvr32/s shdocvw. dll
Regsvr32/s browseui. dll
Regsvr32/s browseui. dll/I
Regsvr3
1. Digital Signature. To use signcode.exe to sign a digital signature, follow these steps:
The toolkit includes the following software: (C:/program files/Microsoft Visual Studio. NET 2003/common7/tools/bin directory)
Makecert.exe creates a certificate in cer format, that is, an X.509 Certificate. You can also create a private key.
Cert2spc.exe converts a CER certificate to a SPC certificate, that is, a PKCS #7 certificate.
Signcode.exe sign the certificate to
C ++ Builder uses ActiveX to display Flash animation-Linux general technology-Linux programming and kernel information. The following is a detailed description. With the strong support of Microsoft, more and more software companies are beginning to support ActiveX, which is a pleasure for friends who like programming! Because we can easily call the external OCX file in the program to implement complicated functions (Bill Gates finally did a good job t
This is a batch processing file. copy it and save it as RepairASP. bat for execution ~
Echo is being repaired. This process may take several minutes. Please wait ......
Copy codeThe Code is as follows: rundll32.exe advpack. dll/DelNodeRunDLL32 % systemroot % \ System32 \ dacui. dll
Rundll32.exe advpack. dll/DelNodeRunDLL32 % systemroot % \ Catroot \ icatalog. mdb
Regsvr32/s comcat. dll
Regsvr32/s asctrls. ocx
Regsvr32/s oleaut32.dll
Regsvr32/s shdocvw
, we need a better reuse mechanism (at the binary level), under Windows, a large number of non-COM-owned. Its basic idea is that it realizes the separation between the real interface and the code implementation, and it is not language-independent.com is divided into in-process components (compiled links into DLLs or OCX files, essentially, one interface with no interface) and out-of-process components (compiled linked to EXE files), these components w
Web Publishing of ActiveX controls consists of two parts:
1. ActiveX control production requirementsThe coding of ActiveX controls generated by web publishing requires that the security interface "IObjectSafety interface" of ActiveX controls be implemented ":
2. ActiveX control release requirements
1) create a cab package for ActiveX space:
To create a cab file, seeCreate a signature cab file for the MFC and ATL controls. This section describes how to create a cab file for distributing
Objective: To use JavaScript scriptsCodeCall the COM control to implement basic functions:1. Define and initialize the COM control;2. Call the COM interface;3. Register com events and call events.
1. Define and initialize the COM control Define an object tag on the HTML page to load the COM control:1) classid: the number of the COM control, used to uniquely identify a COM control;2) ID: it is the object accessed by javascript when calling the COM control. It is a global object. Here, the globa
opened8019 devices busy8020 read comm device error comreaderror8021 internal error comdcberror when Retrieving Device Control Blocks for this port
Research on Serial Communication Programming Technology in PowerBuilder
Abstract: This paper introduces how to implement serial communication by calling Win32 API functions in PowerBuilder, using mscomm32.ocx communication controls, using VCL communication components and calling functions in DLL (dynamic l
Create a signed cab file for the MFC and ATL controls
If you plan to sell the MFC control and ATL control over the Internet, you should package it into a signed small (Cabinet-cab) file. Sign the file to ensure that the source code is safe when the user downloads your control. A cab file contains a compressed version of your control and its installation information (for example, which dynamic link library DLL and OCX must be installed together.
Tools
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
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.