To invoke the OCX control:1, register the OCX control in the System, command: Regsvr32.exe control location (plus/u parameter is unregistered)2. Add the control to the. NET Toolbox and drag it to the form.Without the toolbox, you manually add, you need to pay attention to a problem, is to use Aximp.exe to wrap the OCX control class, and then reference the generat
In the previous article, we made an OCX control called Mfcactive.ocx, and in this article we are going to use this OCX control.The first step: Create an MFC dialog box project (in fact WinForm is the same)Second step: In the Toolbox in the general right-click to select the item, in the COM option to find our generated OCX control, click OK. At this point, we'll s
1. Open vc6.0, create a project, and select "MFC ActiveX controlwizard". The default setting is as follows;
2. on the classview, you can see that there are mainly ** app \ ** CTRL \ ** progpage classes, and the interfaces are mainly implemented in ** ctrl, you can use the automation page of MFC classwizard (CTRL + W) to create interface functions;
3. The interface function is external, so pay attention to the parameter type definition. I generally use the lpctstr character, as shown in the f
Use \ windows \ system32 \ iexpress.exe.
1) Select "create new self extraction directive file" and click Next.
2) Select "create compressed files only (ActiveX instils)" and click Next.
3) Click Add, add the file (pcpos. ocx, pcpos. dll, Comm. dll, tcpclnt. dll), and click Next.
4) Click Browse and enter the storage address of the. cab file (including the obtained file name). Here testcab. Cab is selected and "store files using long file name in
__________________________________________________________Problem: The system popup prompts "missing Mswinsck.ocx", "No Mswinsck.ocx found" and so on.As shown in the following:Workaround:1, download Mswinsck.ocx.2, copy the file "Mswinsck.ocx" to the system directory.3, the system directory is generally: C:\WINNT\System32. 64-bit system for C:\Windows\SysWOW644. Finally click Start Menu--run--Enter regsvr32 mswinsck.ocx, enter to resolve the error prompt!mswinsck.ocx: http://download.csdn.net/de
How can this problem be solved?
Method 1:Register the following DLL files again. Click "start" and "run" on the desktop ":Regsvr32 shdocvw. dllRegsvr32 shell32.dll (note this command)Regsvr32 oleaut32.dllRegsvr32 actxprxy. dllRegsvr32 mshtml. dllRegsvr32 urlmon. dll
Note: you do not need to enter the second command. After these commands are entered, restart Windows. If the command is invalid, re-enter the second command.
Method 2:If an error occurs when you use the method to register reg
1. Install mscommsetup .exe on the local machine to register the MSCOMM32.OCX control locally.
2. After registration
Run the following code to test JSP:
When the JS bullet box is 3, it indicates that the control is successfully loaded and the program can send data to the port.
1. First of all, press the Win7 flagship computer keyboard win+r shortcut keys to open the computer's running window, in the Open Run window, we enter CMD and click Enter, so that we can open the Command Prompt window of the Win7 flagship computer, and of course you can simply click to open the Start menu, Enter CMD directly in the search window below, which can also be clicked into the command Prompt window.
2. In the Open Command Prompt window, we just need to enter regsvr32 xx.ocx and cl
VS2008 add OCX external method to the Web callThe first is the OCX plugin Add methodHere in _danedit, not underneath it. Right-click to add a method, here addedCHAR Caneditctrl::sayhello (void){Afx_manage_state (AfxGetStaticModuleState ());TODO: Add the Dispatch handler code hereMessageBox (L "Hello");return 0;}Modify a Web page fileWidth= "433" height= "hspace=" 0 "vspace=" 0 "align=" top "title=" Top "Rec
Win10 x64 registers the ZQDeviceOcx. ocx control, msinet. ocxwin10x64
The normal method is feasible in 32-bit systems, but not in 64-bit systems.
In a 64-bit system, the correct registration steps are as follows:
1. Place the corresponding ocx and dll in the C: \ Windows \ SysWOW64 directory.
2. Find the cmd.exe file under the C: \ Windows \ syswow64directory, right-click and choose "Run as administrato
The OCX control is automatically registered when the installation package is run and requires manual registration if the installation package is not registered successfullyPpaxsigntoolsdk.ocx This OCX control is called when using the tablet under the browser, it must be registered before use, otherwise the browser version will not work properly.The normal way is possible under a 32-bit system, but it is not
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 (OCX) files must be re
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.com/detail/FTgcSST Everyone be careful.
Copy all four files to C:/Windows/system32 and run regsvr32 C:/winnt/system32/mscomm32.
The following error occurs when COM component is not registered and C # script calculation is used:
The COM Object of the "msscriptcontrol. scriptcontrolclass" type cannot be forcibly converted to the interface type "msscriptcontrol. iscriptcontrol ". This operation fails because the following error occurs when QueryInterface is called for the COM component of the interface whose IID is {0e59f1d3-1fbe-11d0-8ff2-00a0d10038bc}: An error occurred while loading the Type Library/DLL. (Exception from
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 control the service, the service par
The project often encountered JS in order to invoke the C + + control situation, through the control to implement the related function operation. such as video controls, etc.ClassID of Reference object in specific JSThe code reference is as follows:Width= "100%" height= "100%" id= "Xxocx" name= "Xxocx" >JS to invoke the method in the control, as long as you get the control by IDvar ocx = document.getElementById ("Xxocx");
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 OCX, give each parameter one parameter at a time, each interface is assigned an argument after the
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.