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. change dll !!!!!

change dll !!!!!

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
5 Posts 3 Posters 1 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
    maxyi
    wrote on last edited by
    #1

    Hello Friends, I have a very intresting question . The problem is that i have written an application(.exe) it uses a .dll file i.e few functionality are provided in the dll file . as the file is used it is loaded dynamically now the problem is that i want to change this dll without unloading the application is this possible??? i have done some changes in the dll so without unloading the application can i unload the dll and again reload it. but as the dll is loaded it is not replaced by the new dll in that folder . can any one suggest me a option for it???? Tryout are also welcome.Please suggest some technique to do this

    C J 2 Replies Last reply
    0
    • M maxyi

      Hello Friends, I have a very intresting question . The problem is that i have written an application(.exe) it uses a .dll file i.e few functionality are provided in the dll file . as the file is used it is loaded dynamically now the problem is that i want to change this dll without unloading the application is this possible??? i have done some changes in the dll so without unloading the application can i unload the dll and again reload it. but as the dll is loaded it is not replaced by the new dll in that folder . can any one suggest me a option for it???? Tryout are also welcome.Please suggest some technique to do this

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If you close the dll, you can replace it. So long as the code is using the dll ( i.e. has it open ), you can't. Or am I misunderstanding you ? You have the dll and just want to swap them without turning your main app off, right ? Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

      M 1 Reply Last reply
      0
      • M maxyi

        Hello Friends, I have a very intresting question . The problem is that i have written an application(.exe) it uses a .dll file i.e few functionality are provided in the dll file . as the file is used it is loaded dynamically now the problem is that i want to change this dll without unloading the application is this possible??? i have done some changes in the dll so without unloading the application can i unload the dll and again reload it. but as the dll is loaded it is not replaced by the new dll in that folder . can any one suggest me a option for it???? Tryout are also welcome.Please suggest some technique to do this

        J Offline
        J Offline
        Jon Hulatt
        wrote on last edited by
        #3

        FreeLibrary() is the opposite of LoadLibrary(). But it doesn't guarantee that the dll will be unloaded and unlocked. Signature space for rent. Apply by email to....

        M 1 Reply Last reply
        0
        • C Christian Graus

          If you close the dll, you can replace it. So long as the code is using the dll ( i.e. has it open ), you can't. Or am I misunderstanding you ? You have the dll and just want to swap them without turning your main app off, right ? Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

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

          actually u got the point right i have to change the dll and not swap.see i have a folder called ABC in this abc folder i am having my application app.exe and all called xyz.dll. now my applixcation app.exe is running and it is using the xyz.dll.so the xyz.dll is loaded .Now i want to replace this xyz.dll in the folder and that loaded in the application i.e is app.exe. is it possible??? thanks for prompt reply

          1 Reply Last reply
          0
          • J Jon Hulatt

            FreeLibrary() is the opposite of LoadLibrary(). But it doesn't guarantee that the dll will be unloaded and unlocked. Signature space for rent. Apply by email to....

            M Offline
            M Offline
            maxyi
            wrote on last edited by
            #5

            i have to change the dll .see i have a folder called ABC in this abc folder i am having my application app.exe and all called xyz.dll. now my applixcation app.exe is running and it is using the xyz.dll.so the xyz.dll is loaded .Now i want to replace this xyz.dll in the folder and that loaded in the application i.e is app.exe. is it possible??? yep freelibrary() is possible but i will have to stop the work done by the dll function for that tiome??? how to move ahed

            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