COM设计与实现范例[1]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 ocsoft 的 blog

com设计与实现范例

原创作者: 小王志东,王健

创作日期:200245日星期五

件对象模型是一种跨平台技术,是现代面向对象分析与设计的技术实现手段之一,就现实系统应用来看,com技术有着很强的实用价值。

ooa -> ood -> oop 用纯面向对象技术分析设计实现系统

就给出一个简单的范例来展示其魅力。系统描述:本系统是一个多用户登录管理系统。要求用户通过输入用户编号和密码登录系统,如登录成功则显示成功消息,否则显示错误消息。系统分析:类的抽取,根据关键词抽取出用户类,根据用户类衍生出用户管理员类。

com接口定义 

 

unit unioncoms_tlb;

 

// ************************************************************************ //

// warning                                                                   

// -------                                                                    

// the types declared in this file were generated from data read from a      

// type library. if this type library is explicitly or indirectly (via       

// another type library referring to this type library) re-imported, or the  

// 'refresh' command of the type library editor activated while editing the  

// type library, the contents of this file will be regenerated and all       

// manual modifications will be lost.                                        

// ************************************************************************ //

 

// pastlwtr : $revision:   1.130  $

// file generated on 2002-4-5 11:34:29 from type library described below.

 

本文关键:COM
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top