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. Cannot load DLL, please Help !

Cannot load DLL, please Help !

Scheduled Pinned Locked Moved C / C++ / MFC
performancehelp
6 Posts 2 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.
  • B Offline
    B Offline
    Babayan Hovhannes
    wrote on last edited by
    #1

    I try to load icmp.dll and call three functions from it (by address): IcmpCreateFile, IcmpSendEcho, IcmpCloseHandle. On WinXP it works without any errors, I recieve right functions' addresses, call this functions without problems, etc. On Win2000 i recieve correct handle of loaded icmp.dll but: 1) When I call GetProcAddress() for any of this three functions at first time, I recieve positive(!=NULL) value, but when I call function by this address, I recieve following message: ".., Memory could not by written,...". 2) When I call GetProcAddress() for last two functions, I recieve NULL. yiy

    J 1 Reply Last reply
    0
    • B Babayan Hovhannes

      I try to load icmp.dll and call three functions from it (by address): IcmpCreateFile, IcmpSendEcho, IcmpCloseHandle. On WinXP it works without any errors, I recieve right functions' addresses, call this functions without problems, etc. On Win2000 i recieve correct handle of loaded icmp.dll but: 1) When I call GetProcAddress() for any of this three functions at first time, I recieve positive(!=NULL) value, but when I call function by this address, I recieve following message: ".., Memory could not by written,...". 2) When I call GetProcAddress() for last two functions, I recieve NULL. yiy

      J Offline
      J Offline
      Joel Lucsy
      wrote on last edited by
      #2

      Sounds like a different version of the dll. I'd double check to make sure. Other than that, I can't say what's wrong. Joel Lucsy

      B 2 Replies Last reply
      0
      • J Joel Lucsy

        Sounds like a different version of the dll. I'd double check to make sure. Other than that, I can't say what's wrong. Joel Lucsy

        B Offline
        B Offline
        Babayan Hovhannes
        wrote on last edited by
        #3

        I have provide icmp.dll with which I have tested my program with my program, but on the other computers with Win2000 it don't work, yiy

        1 Reply Last reply
        0
        • J Joel Lucsy

          Sounds like a different version of the dll. I'd double check to make sure. Other than that, I can't say what's wrong. Joel Lucsy

          B Offline
          B Offline
          Babayan Hovhannes
          wrote on last edited by
          #4

          Joel, do you know any program, which shows list of exported functions of specified DLL ? Thank you for advice. yiy

          J 1 Reply Last reply
          0
          • B Babayan Hovhannes

            Joel, do you know any program, which shows list of exported functions of specified DLL ? Thank you for advice. yiy

            J Offline
            J Offline
            Joel Lucsy
            wrote on last edited by
            #5

            depends.exe Joel Lucsy

            B 1 Reply Last reply
            0
            • J Joel Lucsy

              depends.exe Joel Lucsy

              B Offline
              B Offline
              Babayan Hovhannes
              wrote on last edited by
              #6

              Thanks !! yiy

              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