论文首页哲学论文经济论文法学论文教育论文文学论文历史论文理学论文工学论文医学论文管理论文艺术论文 |
摘要
目前,在计算机软件工程中,组件化程序设计思想迅速发展起来。为此微软提出了COM (Component Object Model,组件对象模 型)标准。COM是组件对象之间相互接口的规范,凡是遵循COM接口规范的对象彼此之间能相互通信和交互 。COM是1种与操作系统和编程语言无关的软件架构,它将功能软件以即插即用的方式集成到应用中,便于软件系统的设计、升级和维护,降低成本 提高效率。
本文介绍了COM的内存结构、实现原理、分类和特性,包括 COM对象和接口、IUnknown接口、COM对象的创建、组件与客户之间的通讯,分析了公式计算模块的特点,设计和实现了基于COM的公式计算组件。该组件能提供基本的数学公式计算。最后用MFC设计了1个验证该组件的仿真。通本本可以看到开发COM组件的流程。
关键字:组件;COM;接口;公式计算
Abstract
In the computer software engineering the idea of the modularization programming design is developing rapidly. The Microsoft presents the COM (Component Object Mode1) standard. The COM is the interface specification of the components. All components complied with the COM interface specification can communicate with each other. COM refers to a software framework regardless of the operating system and programming languages.It integrates function-software into applications by plug-and-in mode, which makes the software easy to design, upgrade and maintain.Thus the cost is lowered and the efficiency is raised.
This topic discusses COM’s structure, implementation,classes and characteristic, including COM object and interface and interface, IUnknown interface, building of COM object,and communication between component and its caller, introduces the design and implantation for the formula calculating component based on COM by analyzing the characteristics of the formula calculating module. The component can provide the function of calculating basic math formula. In the end, this topic introduces the implantation of a simulation which is to check the component by using MFC. Through this paper, we can see program flow of COM component.
Key words: component; COM; Interface; formula calculating.