摘要
在比较大的应用程序中,为了实现分工协作和编程的便利,通常将程序分成几个模块.每个模块相互独立,相互协调来完成整个的工程.用户模块可以分为静态连接库和动态连接库.介绍了静态连接库和动态连接库的不同,以及它们的优缺点,并重点研究了动态连接库的实现方法.比较全面地介绍了静态连接库和动态连接库在VC中的具体实现支持.最后,编程实现并分别在VB和VC中应用了DLL,实际的应用过程表明,这种模块化方法降低了编程的复杂性,并有利于阶段性的单元测试.
For the collaboration and convenience in programming, a big application program is usually divided into several user modules, which are independent of each other, and work in collaboration with each other. The user modules can be classified into Static-link Library and Dynamic-link Library (DLL). Here the differences between them and their advantages and disadvantages are introduced. The realization method of DLL in VC++ is particularly studied. The support to implement the Static-link Library and Dynamic-link Library in VC is fully demonstrated. Lastly, a program is complied to apply DLL in VB and VC. The application process indicates that this method reduces the complicacy of programming and is beneficial to staged unit test.
出处
《应用科技》
CAS
2006年第5期37-39,共3页
Applied Science and Technology
关键词
静态连接库
动态连接库
static-link library
dynamic-link Library