DLL learning notes

Source: Internet
Author: User

Dynamic-Link Libraries
1. Resource (no code)
2. executable

Although a dynamic-Link Library module can have any extension (such. 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 CILS in your source code. however, import libraries contain no code. instead, they provide the linker with information necessary to set up relocation tables within. EXE file for dynamic linking.

Object libraries and import libraries are used only during program development. Dynamic-link libraries are used during run time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.