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. tracing DLL in. NET

tracing DLL in. NET

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpdebugging
8 Posts 4 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
    Abhi Lahare
    wrote on last edited by
    #1

    hi everyone, Sorry if my question sounds too foolish. I am totally new to .NET, I have .NET code which call a DLL function. I want to debug the dll function. but the devenv does not step into dll function.Is there any setting in .NET env to do this? or any other way of doing this. Regards Abhi Lahare `

    T C E 3 Replies Last reply
    0
    • A Abhi Lahare

      hi everyone, Sorry if my question sounds too foolish. I am totally new to .NET, I have .NET code which call a DLL function. I want to debug the dll function. but the devenv does not step into dll function.Is there any setting in .NET env to do this? or any other way of doing this. Regards Abhi Lahare `

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      what are you calling .NET ? the development environment (Visual Studio .NET 2003) or the .NET framework ? i mean, is you dll a managed code library, or native ?


      TOXCCT >>> GEII power

      [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

      A 2 Replies Last reply
      0
      • T toxcct

        what are you calling .NET ? the development environment (Visual Studio .NET 2003) or the .NET framework ? i mean, is you dll a managed code library, or native ?


        TOXCCT >>> GEII power

        [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

        A Offline
        A Offline
        Abhi Lahare
        wrote on last edited by
        #3

        hi Toxcct, The DLL is a C++ DLL, and .NET is a C# application. since i am not aware of managed code library, or native i cannot answer that. Thanks in advance Abhi Lahare

        T 1 Reply Last reply
        0
        • T toxcct

          what are you calling .NET ? the development environment (Visual Studio .NET 2003) or the .NET framework ? i mean, is you dll a managed code library, or native ?


          TOXCCT >>> GEII power

          [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

          A Offline
          A Offline
          Abhi Lahare
          wrote on last edited by
          #4

          hi Toxctt, Or do i have to set the debug path and trace through the dll function? but i don't want to do that. Thanks in advance, Abhi Lahare

          1 Reply Last reply
          0
          • A Abhi Lahare

            hi everyone, Sorry if my question sounds too foolish. I am totally new to .NET, I have .NET code which call a DLL function. I want to debug the dll function. but the devenv does not step into dll function.Is there any setting in .NET env to do this? or any other way of doing this. Regards Abhi Lahare `

            C Offline
            C Offline
            Cedric Moonen
            wrote on last edited by
            #5

            How are you trying to debug your dll ? Do you know that, in VC++, you can debug a dll very simply: you can choose an executable for debug session (you have to look in the project properties of your dll project). Then, you simply choose which executble will be started to debug your dll. When a function of your dll is called, you can step inside it (like a normal executable).


            Cédric Moonen Software developer
            Charting control

            C 1 Reply Last reply
            0
            • C Cedric Moonen

              How are you trying to debug your dll ? Do you know that, in VC++, you can debug a dll very simply: you can choose an executable for debug session (you have to look in the project properties of your dll project). Then, you simply choose which executble will be started to debug your dll. When a function of your dll is called, you can step inside it (like a normal executable).


              Cédric Moonen Software developer
              Charting control

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              Or an easier way: open your dll project and press F5 (like if you want to start debugging). A dialog will appear in which you can select the executable to will be started (and which of course need to use your dll). Select the executable of your other project.


              Cédric Moonen Software developer
              Charting control

              1 Reply Last reply
              0
              • A Abhi Lahare

                hi Toxcct, The DLL is a C++ DLL, and .NET is a C# application. since i am not aware of managed code library, or native i cannot answer that. Thanks in advance Abhi Lahare

                T Offline
                T Offline
                toxcct
                wrote on last edited by
                #7

                wow, i think you have some lacks i have to fill here. C++ is only a language. you can program for different target system with C++, like Windows, Unix, Mac... the difference (if you code is well written and portable) will not be in your sources, but in the binary the compiler/linker generates. this binary is commonly called "native", as it directly contain the microprocessor instructions. by opposition to native code, .NET (i mean, the .NET framework) is a framework like the Java Virtual Machine which - is supposed to - allow the code compiled to work on every plateform. this implies the compiler generate an intermediate language (MSIL for .NET, ByteCode for JavaVM). this intermediate language is called Managed code because its execution is done only within the .NET framework. some languages (like C#) generate only managed code. but C++ can do both. if you program with Win32/MFC/ATL/WTL libraries, then the code will generate some native instructions. but the Microsoft C++ compiler can also generate "Managed C++" also called (C++/CLI) for the .NET framework. then, to come back to your problem, when you say the DLL is a C++ DLL, you don't explain much. also, saying that .NET is a C# application does no only explain nothing, but is wrong in the facts. now, knowing these things, can you please explain what problem you encounter, and what you want to do ?


                TOXCCT >>> GEII power

                [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                1 Reply Last reply
                0
                • A Abhi Lahare

                  hi everyone, Sorry if my question sounds too foolish. I am totally new to .NET, I have .NET code which call a DLL function. I want to debug the dll function. but the devenv does not step into dll function.Is there any setting in .NET env to do this? or any other way of doing this. Regards Abhi Lahare `

                  E Offline
                  E Offline
                  Eytukan
                  wrote on last edited by
                  #8

                  It's a COM dll ? you can make a reference in your C# project and use it directly in your code. It automatically makes use of the interop service.


                  --[:jig:]-- [My Current Status] I dont know why the hell the script for voting 5 is disabled only for me?? :mad:

                  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