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 problem

Debugging problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingquestion
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.
  • J Offline
    J Offline
    Jia100
    wrote on last edited by
    #1

    I have to debug two projects which are of different versions..started debugging from VC2008 to VC6.In 2008 from a function to another function in vc6.In vc2008 showing correct values but in vc6 not showing any values both strings & numbers.The output VC6 code is a dll.What to do?Pls help....

    modified on Friday, December 17, 2010 7:15 AM

    L M 2 Replies Last reply
    0
    • J Jia100

      I have to debug two projects which are of different versions..started debugging from VC2008 to VC6.In 2008 from a function to another function in vc6.In vc2008 showing correct values but in vc6 not showing any values both strings & numbers.The output VC6 code is a dll.What to do?Pls help....

      modified on Friday, December 17, 2010 7:15 AM

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      I would add some log statements (print to output window, or print to file). If you do this for more than one project, make sure to include timing information, I typically have the current time in "HH:mm:ss.fff" format. Yes, it takes some effort adding the lines, and they do influence timing a bit, however they are a big help. BTW: I don't remove them, I just disable them when I (think I) no longer need them. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

      J 1 Reply Last reply
      0
      • L Luc Pattyn

        I would add some log statements (print to output window, or print to file). If you do this for more than one project, make sure to include timing information, I typically have the current time in "HH:mm:ss.fff" format. Yes, it takes some effort adding the lines, and they do influence timing a bit, however they are a big help. BTW: I don't remove them, I just disable them when I (think I) no longer need them. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

        J Offline
        J Offline
        Jia100
        wrote on last edited by
        #3

        Sorry i think this is not the expected answer....

        L M L 3 Replies Last reply
        0
        • J Jia100

          Sorry i think this is not the expected answer....

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          I don't care about the expected answer, I'm only offering a solution. You can turn it down and continue waiting for someone to tell you whatever it is you do expect. :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

          1 Reply Last reply
          0
          • J Jia100

            I have to debug two projects which are of different versions..started debugging from VC2008 to VC6.In 2008 from a function to another function in vc6.In vc2008 showing correct values but in vc6 not showing any values both strings & numbers.The output VC6 code is a dll.What to do?Pls help....

            modified on Friday, December 17, 2010 7:15 AM

            M Offline
            M Offline
            Maximilien
            wrote on last edited by
            #5

            Huh ? I'm not certain I understand the question, or what you are actually doing... Are you saying you have the same code compiled on VC6 and VS2008 that generate different results ? If you are generating a DLL, you need to have an executable that will call the code in the DLL and check that. One way to do that, is to use log file. Another way is to use unit tests. Good luck.

            Watched code never compiles.

            1 Reply Last reply
            0
            • J Jia100

              Sorry i think this is not the expected answer....

              M Offline
              M Offline
              Maximilien
              wrote on last edited by
              #6

              That's is rude. We're trying to help; if you do not want help, don't ask questions.

              Watched code never compiles.

              1 Reply Last reply
              0
              • J Jia100

                Sorry i think this is not the expected answer....

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Nami.v.s wrote:

                Sorry i think this is not the expected answer.

                Maybe you should explain what is the expected answer, so someone can find it for you.

                Just say 'NO' to evaluated arguments for diadic functions! Ash

                M 1 Reply Last reply
                0
                • L Lost User

                  Nami.v.s wrote:

                  Sorry i think this is not the expected answer.

                  Maybe you should explain what is the expected answer, so someone can find it for you.

                  Just say 'NO' to evaluated arguments for diadic functions! Ash

                  M Offline
                  M Offline
                  Maximilien
                  wrote on last edited by
                  #8

                  knowing the answer to a question is half-cheating! :-)

                  Watched code never compiles.

                  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