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. Visual Studio 2005 SP2 & Debugging MFC DLL

Visual Studio 2005 SP2 & Debugging MFC DLL

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiodebugginghelp
5 Posts 3 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.
  • A Offline
    A Offline
    Andy H
    wrote on last edited by
    #1

    I have an MFC DLL project written in VS2003. I upgraded it to VS2005 SP2 and successfully build the DLL, despite setting the project options to use the projects .PDB I am unable to debug the DLL. I was able to debug happily with VS2003 but CANNOT debug with VS2005! I have rolled back to VS2003 as until I can debug I will not be using VS2005. Has anyone else had this problem with VS2005, and did you manage to debug a DLL?

    K 1 Reply Last reply
    0
    • A Andy H

      I have an MFC DLL project written in VS2003. I upgraded it to VS2005 SP2 and successfully build the DLL, despite setting the project options to use the projects .PDB I am unable to debug the DLL. I was able to debug happily with VS2003 but CANNOT debug with VS2005! I have rolled back to VS2003 as until I can debug I will not be using VS2005. Has anyone else had this problem with VS2005, and did you manage to debug a DLL?

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      Check that your VS finds a dll with all the debug informations. I debug VS2003 dlls with a VS2005 exe sometimes. :-O

      Greetings from Germany

      A 1 Reply Last reply
      0
      • K KarstenK

        Check that your VS finds a dll with all the debug informations. I debug VS2003 dlls with a VS2005 exe sometimes. :-O

        Greetings from Germany

        A Offline
        A Offline
        Andy H
        wrote on last edited by
        #3

        Yes, the projects .PDB file is output to the same folder in which my debug DLL is located as well as the EXE being run from which the DLL is called. I can debug the VS2003 version of the DLL fine, just when I convert the DLL project to VS2005 and build in debug mode I cannot debug. I have even set the Debuggong | Symbols | location to the path to the .pdb, but alas not able to hit my breakpoints! I am sure there is a bug in VS2005 being unable to debug MFC DLL's!!! But would welcome anyone who has managed to debug an MFC DLL in VS2005.

        M 1 Reply Last reply
        0
        • A Andy H

          Yes, the projects .PDB file is output to the same folder in which my debug DLL is located as well as the EXE being run from which the DLL is called. I can debug the VS2003 version of the DLL fine, just when I convert the DLL project to VS2005 and build in debug mode I cannot debug. I have even set the Debuggong | Symbols | location to the path to the .pdb, but alas not able to hit my breakpoints! I am sure there is a bug in VS2005 being unable to debug MFC DLL's!!! But would welcome anyone who has managed to debug an MFC DLL in VS2005.

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Andy H wrote:

          I am sure there is a bug in VS2005 being unable to debug MFC DLL's!!!

          Visual Studio will always have its problems, but that isn't one of them. I would clean the solution and shut down VS.  Then delete ALL intermediate files including pdb, ilk - everything.  Get rid of the Intellisense database as well. Fire up VS and do a full rebuild.  If it still won't work, you've got a project settings issue somewhere. Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          A 1 Reply Last reply
          0
          • M Mark Salsbery

            Andy H wrote:

            I am sure there is a bug in VS2005 being unable to debug MFC DLL's!!!

            Visual Studio will always have its problems, but that isn't one of them. I would clean the solution and shut down VS.  Then delete ALL intermediate files including pdb, ilk - everything.  Get rid of the Intellisense database as well. Fire up VS and do a full rebuild.  If it still won't work, you've got a project settings issue somewhere. Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            A Offline
            A Offline
            Andy H
            wrote on last edited by
            #5

            Thanks, I'll give it a go.

            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