In the process of writing a program, we often have some good controls, want to use their own programs, then first know how to register OCX control, the following formula control as an example to explain:
Registering the Formula one component on the target machine
To implement registration in programming, the code is as follows:
1 define functions in the local
Problem:During programming, I call the dynamic link library statically in ocx, And the link prompts error: Project: Error prj0050: failed to register the output. Please try to enable "redirection for each user", or register this component from the command prompt window with the elevation of privilege. I thought it was a permission issue in win7. Can I check the attributes?
Answer:According to the description, it is certainly not a permission issue,
Similar to MFC itself, MFC extension is a group of VC ++ classes built on the MFC class library, ocx (OLE/Active X control ), it is a 32-bit control that replaces 16-bit Visual Basic extension (vbx). ocx is based on Microsoft's object embedding and Connection Technology (OLE ), this technology allows Binary-based objec
Although MS provides us with a variety. net framework library, our program C # development brings great convenience, but sometimes, some control libraries with specific functions still need to be provided by a third party or written by themselves. When Dll references are required, we usually add them to the project by adding references, and then we can use them as conveniently as we use our own classes. However, some Dll library (
with desktop users.Loadordergroup string, which is related to dependencies. It is determined that the services must be started before the service is started. The format is similar. It is also separated by CHR (0) and ends with two consecutive CHR (0.Password string indicates the password for starting the service. If you use the default account, you do not need to set the account for starting the service.Servicename string, service name. If net.exe is used to
// Better tutorial
OCX requires administrator permission to register in win7. In this case, run cmd as the administrator and run regsvr32 to register.
Very troublesome
Try to use NSIs as the installation package and use regdll to register OCX.
OCX and externalProgramThe interaction is mainly through the provision of method attributes + events Meth
I have never had a deep understanding of this. It takes a long time to install other people's controls and record myself, hey ..
Take XLS. ocx as an Example
(1)
Place XLS. ocx under C:/windws/system32,
If it is not placed in this position, the component cannot be used after the installation is successful, prompting that the component is not in the design mode.
(2) Installation
Menu -- component -->
There was a wine installation project that used serial port testing traffic. I thought N had used the mscomm32.ocx control many years ago and searched it on the computer. I did not know it after Google. vc6 had this control, vc2008 does not have this control. From the next online, it is virus http://download.prjcode.co
This article describes two methods for Automatic Registration of DLL libraries, including calling the regsvr32 method. I hope this article will help you.
Although Ms provides us with a variety. net Framework library, our program C # development brings great convenience, but sometimes, some control libraries with specific functions still need to be provided by a third party or written by themselves. When DLL references are required, we usually add them
Although MS provides us with a variety. net framework library, our program C # development brings great convenience, but sometimes, some control libraries with specific functions still need to be provided by a third party or written by themselves. When Dll references are required, we usually add them to the project by adding references, and then we can use them as conveniently as we use our own classes. However, some Dll library (
Manual registration:
Step 1: Use the registration tool regsvr32 in Windows to register the OCX control, click "start"-> "run", and enter the following in:
Regsvr32 Control path/mscomm32.ocx
Step 2: manually create a primary key entry in the Registry: click "start" and "run", enter the Regedit command in the registry
1 Container Debug 1.1 F5, select Activesx control Test Containor1.2 ok--ok, select New control1.3 in the toolbar to select your control within the Insert control, ok1.4 the Invoke Method s in the Method Name drop-down box select your OCX execution function 1.5 According to the sequence of the actual use of the
In fact, the use is not very large, because such OCX to run, 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 he
Message = "You cannot forcibly convert a COM Object of the type" msscriptcontrol. scriptcontrolclass "to the interface type" msscriptcontrol. iscriptcontrol ". The reason for this operation failure is that calling QueryInterface for the COM component of the interface whose IID is {0e59f1d3-1fbe-11d0-8ff2-00a0d10038bc} fails due to the following error: the library is not registered. (The exception is from hresult: 0x8002801d (type_e_libnotregistered )). "
Solution:
1. Run-regsvr32 msscript. o
If the OCX control contains a non-modal dialog box, when OCX is displayed in IE, it often does not receive tabs, direction keys, and backspace keys. All these messages are intercepted by the IE container. For this problem, Ms provides a solution: first:
Int cmyactivexctrl: oncreate (maid)
{
If (colecontrol: oncreate (lpcreatestruct) =-1)
#-*-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
Component ' msinet. OCX ' ERROR What does it mean? Sometimes we run the software with an error message:
' Msinet. OCX ' or not correctly registered:a the file is missing or invalid
Or is:
Component ' msinet. OCX ' or one of its dependencies not correctly registered:a the file is missing or invalid
The error message means ' msinet ' in the system compon
Recently, I browsed the csdn web page (not just csdn, but other websites may not find the rule), and roaming always unexpectedly popped up an error dialog box, A serious error has been blocked. The error address (fault address: xxxx: XXXX) is returned, and the error file is flash9e. OCX, and then Maxthon is disabled, which is annoying,
1. We suspect that flash plug-in flash9e. ocx is damaged. solutions fo
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.