Com basic 1

Source: Internet
Author: User

1. First, distinguish three basic concepts (component, COM, and component object)

COM component is a software component designed according to com specifications. It can be used to form large-scale application software;

COM (Component Object Model) is about how to build components and how to build applications through componentsProgramA specification;

Component Object: Generally, a component is implemented by class, so this class object is called a component object.

 

Now it seems to be called COM components.

2,COM Component Interface, role

From the customer's point of view, the interface is the method that the component is exposed to the outside, so that the customer can access it;

From the component perspective, an interface is a set of function-related functions, or an interface is a list of projects that can be used for external services by the component.

 

3. The most basic interfaces of COM components

Iunknown, which has three pure virtual functions: QueryInterface, addref, and release;

 

4. Component Classification

In-process components: these components are implemented in DLL and run in the address space of the client program;

 

Out-of-process components: components running in EXE files are called out-of-process components, which are divided into two types:

Local components: they run on the same computer as the customer, but they have their own address space;

Remote component: it runs on a computer connected to the client instead of the same computer as the customer.

 

5. Source of COM components

If the defect occurs, you can check the information yourself. You are welcome to discuss it.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.