2008年3月22日

摘要: 1. A program is a process 2. A process at lease include a main thread. 3. A process can create several other thread. 4. Porcess has its own memory space. Its threads can use the memory space togeth... 阅读全文
posted @ 2008-03-22 11:36 dqshll 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1.What is Modeling? Modeling is simplification of realities. 2. Why Modeling? 2.1 Help us make a system visual According to the realities. 2.2 Modeling allow us to describe the system's archi... 阅读全文
posted @ 2008-03-22 10:47 dqshll 阅读(225) 评论(0) 推荐(0) 编辑

2008年3月21日

摘要: 模块独立性指每个模块只完成系统要求的独立子功能,并且与其他模块的联系最少且接口简单,两个定性的度量标准――耦合性和内聚性。 耦合性也称块间联系。指软件系统结构中各模块间相互联系紧密程度的一种度量。模块之间联系越紧密,其耦合性就越强,模块的独立性则越差。模块间耦合高低取决于模块间接口的复杂性、调用的方式及传递的信息。 无直接耦合;数据耦合;标记耦合;控制耦合;公共耦... 阅读全文
posted @ 2008-03-21 17:27 dqshll 阅读(935) 评论(1) 推荐(0) 编辑
摘要: 类继承和对象组合是OOB中最常用的两种 技术。 1. 类继承 又被称为白箱复用,white box reuse。 优点: 类继承可以方便的改变复用的实现,当一个子类重定义了一些而不是全部操作时,它也 能影响它所继承的操作。 缺点: 在编译时刻就定义了,无法在运行时刻改变从父类继承的实现。 子类实现与父类紧密地依赖,父类实现的任何变化将影响子类。这种依赖限制了灵活性和复用性。 一个解决方法就是只继承... 阅读全文
posted @ 2008-03-21 14:46 dqshll 阅读(949) 评论(1) 推荐(0) 编辑
摘要: The static_cast operator can be used for operations such as converting a pointer to a base class to a pointer to a derived class. Such conversions a... 阅读全文
posted @ 2008-03-21 10:08 dqshll 阅读(422) 评论(0) 推荐(0) 编辑

2008年3月20日

摘要: 其实很简单,就是创建对话框资源,在more style中勾选System modal。 还有一说是 SetWindowPos(handle, HWND_TOPMOST, 0, 0, 0, 0, (SWP_NOSIZE | SWP_NOMOVE) ); 阅读全文
posted @ 2008-03-20 17:18 dqshll 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 去掉caption ModifyStyle(WS_CAPTION,0,0); 发送全屏消息 SendMessage(WM_SYSCOMMAND,SC_MAXIMIZE,0); 或者用 ShowWindow(SW_MAXIMIZE); 也可以实现全屏幕。 简单吧。 阅读全文
posted @ 2008-03-20 15:41 dqshll 阅读(570) 评论(0) 推荐(0) 编辑

导航