您的位置:首页 > 其它

DLL学习笔记

2008-09-17 06:59 302 查看
Dynamic-Link Libraries

1. resource(no code)

2. executable

Although a dynamic-link library module can have any extension (such as .EXE or .FON), the standard extension is .DLL. Only dynamic-link libraries with the extension .DLL will be loaded automatically by Windows. If the file has another extension, the program must explicitly load the module by using the LoadLibrary or LoadLibraryEx function.

An object library is a file with the extension .LIB containing code that is added to your program's .EXE file in the process called static linking when you run the linker.

An import library is a special form of an object library file. Like object libraries, import libraries have the extension .LIB and are used by the linker to resolve function calls in your source code. However, import libraries contain no code. Instead, they provide the linker with information necessary to set up relocation tables within the .EXE file for dynamic linking.

Object libraries and import libraries are used only during program development. Dynamic-link libraries are used during run time.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: