COM (formerly known as OLE) represents Microsoft's "Component Object Model" (Component object models), which is the basis for all ActiveX technologies, including ActiveX controls, automation, and ActiveX documents. But COM also contains more stuff. It is a special specification that the component objects that it develops can be "interoperable" through the specialized features of the operating system. In pra
From: http://blog.163.com/junby2004@126/blog/static/9714233120091105308843/
People familiar with object-oriented programming and network programming must be familiar with ActiveX, Ole, and COM/DCOM concepts, but the relationship between them is still vague to many.
The difference between components and objects should be clarified first.
A component is a reusable module that consists of a set of processing
1, the Linux server configuration switch environmentA, remotely connect to a Linux server over a network or use a Linux server locally, connect a Linux server's COM port to the console port of the switch, and install the Minicom software configuration switch on a Linux server.b, if the minicom is not installed, the Yum installation method is as follows:Yum install-y minicom installs COM serial communicatio
The current project is to develop an add-on for Excel to achieve financial-related business, and after a lot of factors are considered, decide to abandon C # and develop it in C + +. There are two ways to develop Excel add-ins in C + +, one is an Excel add-in XLL, and the other is to use ATL to make COM add-ins. The advantage of the XLL approach is that it is close to the bottom of Excel, executes quickly, and does not need to modify the registry, but
Using WMI to obtain system information procedures
As an example of obtaining a native system, the process of obtaining system information is as follows:
1 initialization of the COM library
Since the WMI application was written in C + + based on COM technology, the COM library must be initialized, when the call function CoInitializeEx is used to initialize the
The Oracle tutorial you are looking at is that Oracle uses Pl/sql to manipulate COM objects. The Pl/sql is extended by Oracle company to standard SQL, dedicated to programming in Oracle databases, and is a third-generation process programming language. Starting from Oracle8, it provides the process of calling external C language directly from Pl/sql, allowing developers to use PL/SQL for programming modules in C language. Starting with Oracle8i, Java
services|web|xml| check box for simplicity, the examples above all use VBScript to access Web services. The SOAP WSDL moniker can actually be written using Visual c+, Visual Basic 6.0, Visual Basic. NET, or C #. For example, Visual Basic. NET can also use compiled managed code to access the same object, as shown in the following example:
Imports System
Imports System.Runtime.InteropServices
Module wkoclient
Sub Main ()
Dim Wsdlmoniker =
"SOAP:WSDL=HTTP://LOCALHOST/CSSOAP/CSSOAP.CALC.SOAP?WSDL"
Thursday, March 15,200 1
By ish Singh
Introduction:
Com is sometimes referenced as common object model but Microsoft officially callit Component Object Model. microsoft also developed DCOM as an extension of COM. DCOM was designed with Distributed Computing in perspective. CORBA stands for Common Object Request Broker Architecture and developed by Object Management Group (OMG ).
When using COM components, it is common practice to call CoInitialize (NULL) at the front of the main function, and the last face to invoke CoUninitialize ();One problem today is that the use of COM components in a thread fails, and I suspect that COM also needs to be initialized in threads. That is, the initialization of COM
query, so what is this interface? This is the famous IUnknown interface, and the IUnknown interface is defined in the Windows SDK Unknwn.h, which is defined as follows:
Copy Code code as follows:
Interface IUnknown
{
Public
Virtual HRESULT stdmethodcalltype QueryInterface (REFIID riid, _com_outptr_ void **ppvobject) = 0;
Virtual ULONG stdmethodcalltype AddRef (void) = 0;
Virtual ULONG Stdmethodcalltype release (void) = 0;
};
The stdmethodcalltype here repre
COM domain name the world's most popular, Huaxia name network to force 53 yuan domain name registration
Foreign well-known web site Hosterstats released the February 2011 Global Domain Name Registration Statistics report, to COM for the suffix of the total number of domain names up to 92 million, become the world's most popular domain name suffix. Next is NET, Org.
In this connection, we contacted
1. Open COM option in php.ini First, com.allow_dcom = True
2. My environment here is php5.4.7,php 5.4.5, com/dotnet module has become a separate extension, so need to configure Extension=php_com_dotnet.dll in php.ini, if PHP versionThe configuration method is: Simply add Extension=php_com_dotnet.dll to the extended list
3. It is also necessary to understand that, although the
Brief introduction
You may have seen some new custom toolbar buttons or menu bars added by other software in the Word2000, Access2000, Excel2000, PowerPoint2000, and other software toolbars or menu bars under Office2000, and when clicked, There will be different responses to occur. Below, let's also implement these features, and it's important to note that here we do not need to vb/vba to implement it, but rather to develop Office2000 internal COM pl
) are not required because the ASP can directly relate to the presentation layer
Or the Business Rules Layer Component dialog. Because most applications are written separately by ASP, a legitimate problem is:
Why do you want to transfer code to a COM component?
In my opinion, ASP is only used to express layer code, so I choose to use business rule logic or any form of data access
are loaded into the COM c
The COM component has three basic interface classes: iunknown, iclassfactory, and idispatch.The COM specification specifies that all components and interfaces must be inherited from iunknown. iunknown contains three functions: QueryInterface, addref, and release. These three functions are extremely important, and their order cannot be changed. QueryInterface is used to query other interfaces implemented by
Recently, this registry-free COM technology was used in our work, that is, free registration of COM.
The COM component we provide will be used by multiple products, and these products may:
Installed on the same machine
The COM component used is of different versions.
In this way, if you use a common registered
in the "Big talk design mode C + + version-abstract Factory mode", we save the world attempted, leaving little regret, in this article we will give a solution--com component technology, but also pull the factory model in the application of COM component technology.The root cause of the Factory mode violation of the open-closed principle is that the object generation cannot be controlled by the data outside
People who are familiar with object-oriented programming and network programming must not be unfamiliar with the concepts of ActiveX, OLE, and com/dcom, but what is the relationship between them is rather vague for many people.Between the specific descriptions of their relationships, we will first identify the difference between the component (Component) and the object. A component is a reusable module that is a business object (Rules object) that con
A typical scenario in COM is to have the client object instantiate the server object and then invoke the objects. However, without a special mechanism, these server objects will be difficult to turn to and callback to client objects. COM Connection points provide this special mechanism to achieve two-way communication between the server and the client. With connection points, the server can invoke clients w
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.