运用组件化思想将复杂的软件界面分割成多个功能简单、可重用性强的功能模块,既可以简化大型软件的编码、调试工作,又可以实现模块重用,避免重复开发。首先介绍了动态链接库的优点,接着提出了一种统一开发界面组件的方法:即将应用程序主窗口以及对其各种操作通过一个EXE文件在客户方实现,而将工具栏、状态栏等子窗口以及对它们的各种操作分别封装进不同的DLL,在服务器方实现。最后以一个实例验证了此方法的可行性。
By dividing the complicated software interface into several simple and reusable function modules according to the componentbased method, software programming and debugging can become much simpler and software need not be developed repeatedly. In this paper, we introduce the advantages of Dynamic Link Library, bring forward a common method that develops reusable interface components : design of the whole program is divided into two parts, client design and server design. In the end ,we verified the feasibility of this method by a dynamic toolbar instance.