write to debug window?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • marane moll

    write to debug window?

    Hello.
    How do I write to the debug window in "Visual c++" in a windows application?

    Thankyou
    Sincerely
    Marane


  • Roel Schroeven

    #2
    Re: write to debug window?

    marane moll wrote:[color=blue]
    > Hello.
    > How do I write to the debug window in "Visual c++" in a windows application?[/color]

    OutputDebugStri ng

    --
    "Codito ergo sum"
    Roel Schroeven

    Comment

    • Jakob Bieling

      #3
      Re: write to debug window?

      "marane moll" <marane@gmx.l i> wrote in message
      news:bfoiqh$2on $03$1@news.t-online.com...
      [color=blue]
      > How do I write to the debug window in "Visual c++" in a windows[/color]
      application?

      This question should belong into a newsgroup about Visual C++, since it
      is no C++ Language question. But oh well, you'll know for next time, right?
      ;o) The answer to your question: Use OutputDebugStri ng ("hello world\n");

      hth
      --
      jb

      (replace y with x if you want to reply by e-mail)


      Comment

      • Alan Chen

        #4
        Re: write to debug window?

        "Jakob Bieling" <netsurf@gmy.ne t> wrote in message news:<bfojv2$ne r$00$1@news.t-online.com>...[color=blue]
        > "marane moll" <marane@gmx.l i> wrote in message
        > news:bfoiqh$2on $03$1@news.t-online.com...
        >[color=green]
        > > How do I write to the debug window in "Visual c++" in a windows[/color]
        > application?
        >
        > This question should belong into a newsgroup about Visual C++, since it
        > is no C++ Language question. But oh well, you'll know for next time, right?
        > ;o) The answer to your question: Use OutputDebugStri ng ("hello world\n");
        >
        > hth[/color]

        And if you want to know how to interface this function with C++
        iostreams, you might want to look at:

        Wondering how to write a great dissertation or thesis paper within a short period of time? We'll help you get the job done!

        Comment

        • Phlip

          #5
          Re: write to debug window?

          > > > How do I write to the debug window in "Visual c++" in a windows[color=blue][color=green]
          > > application?
          > >
          > > This question should belong into a newsgroup about Visual C++, since[/color][/color]
          it[color=blue][color=green]
          > > is no C++ Language question. But oh well, you'll know for next time,[/color][/color]
          right?[color=blue][color=green]
          > > ;o) The answer to your question: Use OutputDebugStri ng ("hello[/color][/color]
          world\n");[color=blue][color=green]
          > >
          > > hth[/color]
          >
          > And if you want to know how to interface this function with C++
          > iostreams, you might want to look at:
          >
          > http://www.respower.com/~earlye/prog...991206.001.htm[/color]

          I have wrapped up a great many of my best tricks regarding the VC++ Output
          Panel here:



          It includes the iostreams wrapper from here:



          That provides an implementation of #define db(x) that prints the file name,
          line number, name of x and value of x to that panel, in VC++ diagnostic
          format. This means you can tap <F4> to navigate to the next db() trace
          statement.

          My source then goes on to provide a lite test rig.

          --
          Phlip



          Comment

          Working...