COM technology is also a standard way to package downloadable code (which is what ActiveX controls do). Even methods of interacting with the native OS can be specified using COM, for example, in Windows and Windows NT, where new APIs are used, most of which are defined as COM objects. It can be seen that COM, although originated from compound documents, but it is effective for many software problems, it is at the bottom of the basic technology. In a word, COM is a language-independent component
AxHost.Next you had to add the control to the form's Controls collection so it was visible and usable. You cannot call any interface methods until the control instance are created, that doesn ' t happen until you ' ve added the CO Ntrol and the form ' s Load event has fired.Next you has to use reflection or the dynamic keyword to obtain a reference to the interfaces implemented by the control, In the need to set properties or call methods. That's difficult to get right, and you'll want to write
It is said that delphi5 has always had this bug with Delphi7, and I don't know if it has been changed in a later version.
I use Delphi7.
I don't know much about delphi. ocx is also used to catch ducks. I cannot understand the cause of this bug, but I did solve the problem. I will explain the solution below (in fact, I also searched the website and sorted it out a little)
1. Go to the Delphi installation directory and find the source \ VCL
How to solve?
Method One:Re-register the following DLL file, you point "start", "Run" on the desktop:
regsvr32 Shdocvw.dll
regsvr32 Shell32.dll (Note this command)
regsvr32 Oleaut32.dll
regsvr32 Actxprxy.dll
regsvr32 Mshtml.dll
regsvr32 Urlmon.dll
Note: The second command does not have to lose, you can restart Windows after you finish the command, and then re-enter the second command if it is found to be invalid.
Method Two:It is also invalid if a method is used to re-register regsvr32 Olea
It is worth noting that this problem is encountered during the development of OCX controls.
The debug version of the program can be compiled to run normally, but the release version when the registration failed, prompted not to find the module, using Depends view,
Missing libraries such as Avcodec-54.dll, which are used in ffmpeg, are already in the program directory, and debug compiled programs can correctly
Identify these libraries and register t
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
mode, there is no problem that the file cannot be overwritten because the file is locked, so that we will not cause conflicts when saving the file.
If you have any questions about this control, please reply below.
Second question (about operating Excel files on the server)
To operate Excel files on the server, of course the server must install Office Excel. After installing this software, we can see that a COM component has been reg
1.download and install gs705w32.exe
You can also download and install ghostscript7.07, but pb9 does not support gs8.0 and later versions!
2. For powerbuilder9.0
Add in system environment variable path
The default installation path of gs705w32.exe is C:/GS (which can be modified)
For example, C:/GS/gs7.05/bin/
3. Install a virtual printer
Go directly to
After Ubuntu16.04 is installed in Cuda and CUDNN, install Tensorflow,tensorflow and OPENCV can download the corresponding installation package on the Internet and install it directly from Pip and Conda directly under the path where the installation package is located, as shown in:The prerequisite is to download a good installation package. After installing TensorFlow, you also need to add the system path in
1. Set the initial widget size.
First, we need to set the initial size of the control to its static size using the COleControl::SetInitialSize method. This should be done in your control's constructor like this://////////////////////////////////////
This is my previous sectionCode.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 Procedure Tform1.button1click (Sender: tobject ); 2 VaR 3 Ocxhand: thandle; 4 Regfunc:
Custom messages cannot be defined in ATL as in MFC, because there is no concept of MSG map in standard ATL, and if you are doing ActiveX, you can msg to window,
ATL provides macros of the BEGIN_MESSAGE_MAP category:
First, define the message ID:
The original Article is published in [http://community.csdn.net/expert/Topicview2.asp? Id = 3072485]
Question about ActiveX controls in the tape window: How do I get the Enter key?
Problem:
Create an MFC ActiveX project, add a dialog box
Add # pragma once in the next line of the xxxctrl. H (XXX is the project name) header file
// ------- Add ---------------// Cancel IE Security Prompt# Include "objsafe. H"// --------- Add ----------------------------
And declare part of 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.