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. How to load DLL from memory, not disk

How to load DLL from memory, not disk

Scheduled Pinned Locked Moved C / C++ / MFC
performancehelptutorial
7 Posts 4 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.
  • M Offline
    M Offline
    MiCROHARD
    wrote on last edited by
    #1

    Just like LoadLibrary. Help me plz...

    J V M 3 Replies Last reply
    0
    • M MiCROHARD

      Just like LoadLibrary. Help me plz...

      J Offline
      J Offline
      jmkhael
      wrote on last edited by
      #2

      What do you want to do exactly? What function do you need? Papa while (TRUE) Papa.WillLove ( Bebe ) ;

      M 1 Reply Last reply
      0
      • M MiCROHARD

        Just like LoadLibrary. Help me plz...

        V Offline
        V Offline
        vividtang
        wrote on last edited by
        #3

        yes,the above mr say right,what file or function do you indeed want ?which dll the function is in? for example,i want to use GradientFill function in msinmg32.dll to draw gradient rectange i can do this way: hinst_msimg32 = LoadLibrary( "msimg32.dll" ); m_bCanDoGradientFill = FALSE; if(hinst_msimg32) {m_bCanDoGradientFill = TRUE; dllfunc_GradientFill = ((LPFNDLLFUNC1) GetProcAddress( hinst_msimg32, "GradientFill" )); }}

        1 Reply Last reply
        0
        • J jmkhael

          What do you want to do exactly? What function do you need? Papa while (TRUE) Papa.WillLove ( Bebe ) ;

          M Offline
          M Offline
          MiCROHARD
          wrote on last edited by
          #4

          I need LoadLibrary from memory, not from file. Just like: BOOL MyLoadLibrary(PBYTE LibCode);

          J 1 Reply Last reply
          0
          • M MiCROHARD

            I need LoadLibrary from memory, not from file. Just like: BOOL MyLoadLibrary(PBYTE LibCode);

            J Offline
            J Offline
            jmkhael
            wrote on last edited by
            #5

            I know an assembly way, if interested send me a mail Papa while (TRUE) Papa.WillLove ( Bebe ) ;

            M 1 Reply Last reply
            0
            • J jmkhael

              I know an assembly way, if interested send me a mail Papa while (TRUE) Papa.WillLove ( Bebe ) ;

              M Offline
              M Offline
              MiCROHARD
              wrote on last edited by
              #6

              Wow..... It's realy?! Send it to me: winddriver@msn.com Thank u very much~~~~~~~~~~~

              1 Reply Last reply
              0
              • M MiCROHARD

                Just like LoadLibrary. Help me plz...

                M Offline
                M Offline
                Mahendra_786
                wrote on last edited by
                #7

                DLLs automatically use shared memory for READ-ONLY areas. Due Regards Mahendra

                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