What are the differences between .dll, .lib, .h files?

Why should I include some * .lib, .h or some other files in the project? And what are these things used for?

+58
c ++ windows header-files dll
Nov 22 '09 at 7:34
source share
3 answers
  • .h : header file, its source file containing declarations (unlike .cpp, .cxx, etc., containing implementations),

  • .lib : a static library may contain code or simply links to a dynamic library. In any case, he compiled the code that you link to your program. A static library is included in your .exe at link time.

  • .dll : dynamic library. Just like static, but you need to deploy it with your .exe file because it is loaded at runtime.

+83
Nov 22 '09 at 7:40
source share
  • H Declares an interface to the library — including functions, structures, and constants. It is written in C.
  • LIB Either declares a binary interface to a dynamic library (DLL), or it contains the binary code of the library.
  • Dynamic Link DLL - your application shares them with the system or uses them to maintain the code structure.
  • DEF Textual description of the functions exported by the DLL.
+25
Nov 22 '09 at 7:40
source share

*. dlb is like a static library.

-3
Mar 19 '15 at 6:39
source share



All Articles