"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");
"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:
> > > 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:
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.
Comment