~/talk

“Everything You Ever Wanted to Know about DLLs”

Talkat CppCon 2017 · 2017-09-24..09-29· [linux-and-operating-systems, c-and-cpp]
links:none on file
slides:none on file

Builds a tiny Hello.dll and PrintGreeting.exe to show exactly what ends up in a Windows PE: DOS stub, COFF header, sections (.text, .rdata), export directory and relocations, inspected with dumpbin and a hex editor; LoadLibrary/GetProcAddress and implicit linking via Hello.lib are demonstrated and the demo runs. Loader behavior (search order, known DLLs, ASLR, relocations), loader steps (map, relocate, bind imports, call DllMain) and diagnostics with Gflags are detailed; advice: use .def for stable exports and avoid exposing C++ ABI.

AI-written summary · about

  1. 0:00Introduction to DLLs
  2. 1:05Building and using a DLL
  3. 8:33What's inside a DLL file
  4. 22:46Exporting functions from DLLs
  5. 35:31Loading a DLL into memory
  6. 43:43Debugging DLL loading failures
  7. 50:33C++ and DLLs
  8. 1:00:00Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.