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. Debugging DLL loaded with LoadLibrary

Debugging DLL loaded with LoadLibrary

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingcsharpvisual-studiohelpworkspace
3 Posts 2 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.
  • C Offline
    C Offline
    crewchill
    wrote on last edited by
    #1

    All right, I give up. There must be a trick to this. Basically I have this gigantic workspace with projects that spits out little DLLs. Some of the basic DLLs are loaded by another DLL which is finally loaded by the executable file. What happens when I put a breakpoint is that the Visual Studio spits out warning the breakpoint is disabled. I already put in all the DLLs under the "additional DLL" under Debug tab in MS VC 6.0, and still no luck. Any help is appreciated!! :confused: Frank

    N 1 Reply Last reply
    0
    • C crewchill

      All right, I give up. There must be a trick to this. Basically I have this gigantic workspace with projects that spits out little DLLs. Some of the basic DLLs are loaded by another DLL which is finally loaded by the executable file. What happens when I put a breakpoint is that the Visual Studio spits out warning the breakpoint is disabled. I already put in all the DLLs under the "additional DLL" under Debug tab in MS VC 6.0, and still no luck. Any help is appreciated!! :confused: Frank

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #2

      Are the DLL's compiled as Debug Builds? Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

      C 1 Reply Last reply
      0
      • N Neville Franks

        Are the DLL's compiled as Debug Builds? Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

        C Offline
        C Offline
        crewchill
        wrote on last edited by
        #3

        Yes they are. Thinking a little bit more about it, I dont know if this matters, but these DLLs are being copied to another directory instead of being used straight from their respective Debug directory. So instead being run from "MyProj\Debug\MyProj.dll" there is a post-build step to "copy MyProj\Debug\MyProj.dll c:\output\dlls". Thus the code loads the Dll like LoadLibrary("c:\output\dlls\MyProj.dll")

        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