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. who to change dll ??

who to change dll ??

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
9 Posts 6 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
    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???? 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??? Tryout are also welcome.Please suggest some technique to do this

    C R B I 4 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???? 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??? Tryout are also welcome.Please suggest some technique to do this

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

      When I asked you to stop asking here over and over, I did not mean for you to write the same question to me privately. I've told you several times here I don't think you can do it, did you expect a different answer by emailing me ? I don't think it can be done, because the OS owns the file while it is open. I also suspect the folder is more Windows/System than ABC, why else would you be unable to stop the program from running for 10 seconds ? If I had an answer, I would have given it, as would many others here. You asked again today AFTER someone replied. Has it occured to you that no-one has helped you because no-one is able to ? 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???? 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??? Tryout are also welcome.Please suggest some technique to do this

        R Offline
        R Offline
        roboo
        wrote on last edited by
        #3

        :-Dyou mean you want to change the dll file while the application which load the dll is running. I think it is impossible to complete it directly. I am I,Who is who,I am who,Who am I

        1 Reply Last reply
        0
        • C Christian Graus

          When I asked you to stop asking here over and over, I did not mean for you to write the same question to me privately. I've told you several times here I don't think you can do it, did you expect a different answer by emailing me ? I don't think it can be done, because the OS owns the file while it is open. I also suspect the folder is more Windows/System than ABC, why else would you be unable to stop the program from running for 10 seconds ? If I had an answer, I would have given it, as would many others here. You asked again today AFTER someone replied. Has it occured to you that no-one has helped you because no-one is able to ? 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

          hey come why are u so angry??? when i came today i saw alot of queries and mine was far back . i thought i might have been missed by some persone who knows something more like u did. so i just posted the query today. and by mistake due to the net connection i have posted it twice. any way i think u should cool down this query being really important for me i was willing the solution from u and thought that u might not check it as today is new day and there was no reply from u when i have wrtten a reply over there so i just thought that u might have missed it so i just mailed u . if u dont like these mails why do u visit such site???else give the mail id which u dont like. else u should promptly reply that u dont know the further part. any way dont worry. i wont mail u any more

          V 1 Reply Last reply
          0
          • M maxyi

            hey come why are u so angry??? when i came today i saw alot of queries and mine was far back . i thought i might have been missed by some persone who knows something more like u did. so i just posted the query today. and by mistake due to the net connection i have posted it twice. any way i think u should cool down this query being really important for me i was willing the solution from u and thought that u might not check it as today is new day and there was no reply from u when i have wrtten a reply over there so i just thought that u might have missed it so i just mailed u . if u dont like these mails why do u visit such site???else give the mail id which u dont like. else u should promptly reply that u dont know the further part. any way dont worry. i wont mail u any more

            V Offline
            V Offline
            Vagif Abilov
            wrote on last edited by
            #5

            maxyi wrote: if u dont like these mails why do u visit such site??? AFAIK, one of the reasons Christian visits this site is to help people like you. If you read the messages he posts or article he writes you'll quickly find out that he knows what he is saying. His reply to you contains an answer, and even if this answer ("the file is controlled by OS, so there's no guaranteed way of replacing the DLL") is not what you want to hear, you just have to accept it. Posting the same question again and again is not the best way of getting help. Why not reading (MSDN documentation[^])? Christian pointed you to another aspect of your problem: sometimes instead of solving the problem directly it's better to check if it's correct to make such task at all. If somebody comes with a question "how do I write to a file that is exclusively open by other user", it's silly to search for a solution: the task is invalid and will be denied by any decent operating system. So I suggest you look at your problem once again: why do you need to break into a field that is controlled by an operating system? Can't you revise your problem instead of waiting for somebody to show you a back door? Best regards Vagif Abilov MCP (Visual C++) Oslo, Norway Hex is for sissies. Real men use binary. And the most hardcore types use only zeros - uppercase zeros and lowercase zeros. Tomasz Sowinski

            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???? 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??? Tryout are also welcome.Please suggest some technique to do this

              B Offline
              B Offline
              benjymous
              wrote on last edited by
              #6

              As it's already established that Windows will probably not let you unload, unlock, swap, and reload the same DLL file, can't you just make it load a differently named DLL that has the same functionality I.e. * App using xyz.dll in folder blegh\ * you add xyz2.dll into folder blegh\ * you select a "load new dll" option in the app, and pick xyz2.dll * App unloads xyz.dll and loads xyz2.dll instead -- Help me! I'm turning into a grapefruit!

              C 1 Reply Last reply
              0
              • B benjymous

                As it's already established that Windows will probably not let you unload, unlock, swap, and reload the same DLL file, can't you just make it load a differently named DLL that has the same functionality I.e. * App using xyz.dll in folder blegh\ * you add xyz2.dll into folder blegh\ * you select a "load new dll" option in the app, and pick xyz2.dll * App unloads xyz.dll and loads xyz2.dll instead -- Help me! I'm turning into a grapefruit!

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

                I suspect if he could do that, he could also stop his program, and that the reason he cannot is that he is trying to write something destructive. The fact that he's not denied it when I've suggested this twice enhances my view that this is the case. Why else could he not stop his app for 10 seconds ? 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

                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???? 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??? Tryout are also welcome.Please suggest some technique to do this

                  I Offline
                  I Offline
                  includeh10
                  wrote on last edited by
                  #8

                  this is first time i see the Q, and, it is your rights to post your Q again if no right reply, why not? what is the purpose of the forum, who is god here - you are one of them. i checked all replies to your Q, so far, all of them are funny - they have no any programming experience but always imitate as teachers on the forum. of course it is possible to close and re-load a dll, because the app is developped by you. for unix, dos, windows and any other formal OS, all have functionalities called "dynamically using libraries" - basically are load, close and reload dll etc. unix is more powerful in process controlling, windows has less. read related topic to find if u can dynamically use your dll in your case (not always allowed). good luck. includeh10

                  M 1 Reply Last reply
                  0
                  • I includeh10

                    this is first time i see the Q, and, it is your rights to post your Q again if no right reply, why not? what is the purpose of the forum, who is god here - you are one of them. i checked all replies to your Q, so far, all of them are funny - they have no any programming experience but always imitate as teachers on the forum. of course it is possible to close and re-load a dll, because the app is developped by you. for unix, dos, windows and any other formal OS, all have functionalities called "dynamically using libraries" - basically are load, close and reload dll etc. unix is more powerful in process controlling, windows has less. read related topic to find if u can dynamically use your dll in your case (not always allowed). good luck. includeh10

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

                    thanks dear friend . thanks alot . are seeing few thing in reply is good but there is no particular solutuin for my problem so i just posted my query again. any way i dont want o give any explanation. the reply from cristain was bit harsh so i just wrote back i am not intrested in writing any replies or any thing like that bye tahnks for ur reply

                    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