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. Managed C++/CLI
  4. Debugging into unmanaged code

Debugging into unmanaged code

Scheduled Pinned Locked Moved Managed C++/CLI
csharpc++visual-studiocomdebugging
4 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.
  • M Offline
    M Offline
    MrNed
    wrote on last edited by
    #1

    I have a c# app which references a managed c++ class dll which is wrapping an unmanaged win32 dll using the method described here[^]. I have set the c# app's properties to allow unmanaged code debugging (VS2005), but I am still unable to step into the win32 dll code. Everything is in the one visual studio solution. I have created a pre-build event for the c# app to copy the win32 dll to the c# apps debug folder (Id rather not have to do this, but it seems necessary). Can someone please help me figure out why i cant debug the dll?

    S 1 Reply Last reply
    0
    • M MrNed

      I have a c# app which references a managed c++ class dll which is wrapping an unmanaged win32 dll using the method described here[^]. I have set the c# app's properties to allow unmanaged code debugging (VS2005), but I am still unable to step into the win32 dll code. Everything is in the one visual studio solution. I have created a pre-build event for the c# app to copy the win32 dll to the c# apps debug folder (Id rather not have to do this, but it seems necessary). Can someone please help me figure out why i cant debug the dll?

      S Offline
      S Offline
      Sheng Jiang
      wrote on last edited by
      #2

      modify the project settings of the managed c++ project, change the output and debug target according to the C# app. start debugging from the managed c++ project. My blogs: http://blog.joycode.com/jiangsheng http://blog.csdn.net/jiangsheng http://bloglines.com/public/jiangsheng Command what is yours Conquer what is not ---Kane

      M 1 Reply Last reply
      0
      • S Sheng Jiang

        modify the project settings of the managed c++ project, change the output and debug target according to the C# app. start debugging from the managed c++ project. My blogs: http://blog.joycode.com/jiangsheng http://blog.csdn.net/jiangsheng http://bloglines.com/public/jiangsheng Command what is yours Conquer what is not ---Kane

        M Offline
        M Offline
        MrNed
        wrote on last edited by
        #3

        Sorry, but I can't see any settings like that... what exactly are they called? Im using Visual Studio 2005.

        M 1 Reply Last reply
        0
        • M MrNed

          Sorry, but I can't see any settings like that... what exactly are they called? Im using Visual Studio 2005.

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

          Never mind, figured out my problem thanks. In the properties for the win32 project I had Linker>Debugging>Generate Debug Info turned off :D

          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