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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. loading resource only dlls

loading resource only dlls

Scheduled Pinned Locked Moved C / C++ / MFC
questionlearning
3 Posts 3 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.
  • T Offline
    T Offline
    Ted Podelnyk
    wrote on last edited by
    #1

    I created a resource only dll and have been trying to load it into my project without much luck. The code to load the dll essentially HINSTANCE m_hinst; m_hinst = LoadLibrary(name.dll); Instead of a pointer to the dll, the return value is continually, 0x10000000. Do I have some dll project settings incorrect, or am I doing something wrong?

    B M 2 Replies Last reply
    0
    • T Ted Podelnyk

      I created a resource only dll and have been trying to load it into my project without much luck. The code to load the dll essentially HINSTANCE m_hinst; m_hinst = LoadLibrary(name.dll); Instead of a pointer to the dll, the return value is continually, 0x10000000. Do I have some dll project settings incorrect, or am I doing something wrong?

      B Offline
      B Offline
      bikram singh
      wrote on last edited by
      #2

      if LoadLibrary() is returning 0x10000000, then 0x10000000 is the "pointer to your dll" aka the dll's load address. Bikram Singh I believe we should all pay our tax with a smile. I tried - but they wanted cash.

      1 Reply Last reply
      0
      • T Ted Podelnyk

        I created a resource only dll and have been trying to load it into my project without much luck. The code to load the dll essentially HINSTANCE m_hinst; m_hinst = LoadLibrary(name.dll); Instead of a pointer to the dll, the return value is continually, 0x10000000. Do I have some dll project settings incorrect, or am I doing something wrong?

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        There's nothing wrong. HINSTANCE is an opaque handle, you shouldn't care what the value is, as long as it's not NULL which would mean LoadLibrary() failed. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- "That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."   -- Buffy

        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