Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. About dll dynamic load - a simple question?

About dll dynamic load - a simple question?

Scheduled Pinned Locked Moved C / C++ / MFC
questionperformance
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Best Kiluyar
    wrote on last edited by
    #1

    Hi, here If I repeat load library in VC: HMODULE handle0 = LoadLibrary(TEXT("testdll0.dll")); HMODULE handle1 = LoadLibrary(TEXT("testdll0.dll")); My program will load the two copies of the testd110.dll in memory? handle0 should be equal to handle1? Thanks a lot!

    S 1 Reply Last reply
    0
    • B Best Kiluyar

      Hi, here If I repeat load library in VC: HMODULE handle0 = LoadLibrary(TEXT("testdll0.dll")); HMODULE handle1 = LoadLibrary(TEXT("testdll0.dll")); My program will load the two copies of the testd110.dll in memory? handle0 should be equal to handle1? Thanks a lot!

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      Only one copy of the DLL will be loaded. handle0 will be equal to handle1. The FreeLibrary will need to be called twice to unload the DLL as you called LoadLibrary twice.

      Steve

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups