1 / 5

Understanding DLLs, Headers, and Libraries in Dynamic Link Libraries

Discover the essentials of Dynamic Link Libraries (DLLs) with Jeff Chastine in this comprehensive guide. Learn how DLLs are a compiled set of reusable functions and understand the importance of header (.h) and library (.lib) files that describe available functions without implementation. Master how to include header files and link against the appropriate libraries in your project. With practical insights, you'll also find guidance on configuring your environment in Visual Studio 2010 to ensure your executable can locate the required DLLs.

von
Télécharger la présentation

Understanding DLLs, Headers, and Libraries in Dynamic Link Libraries

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Understanding DLLs and headers, and libs… Jeff Chastine

  2. Dynamic Link Libraries • Real world: No longer building from scratch! • DLLs – Dynamic Link Libraries • Just a compiled set of functions • Reusable • Look in system32! • Header file(s) • Lib file(s) Jeff Chastine

  3. HEADER FILES • A description of available functions • No implementation (in DLL) • Use #include • “” search locally • < > search elsewhere Jeff Chastine

  4. LIB Files • It’s a mystery! • Relates the header file to the DLL • Binary file • Tells where in the DLL the functions are! #include HeaderFile LIBFile DLL function1 function2 function3 Needs function75 function76 function77 Jeff Chastine

  5. Now That you Understand • You’ll have to configure your environment (VS 2010) • Tell it: • Where the header files are • Where the lib files are • Which lib files to use • Make sure the .exe can find the DLL! Jeff Chastine

More Related