"wo*********@yahoo.com" wrote:
Hello all,
I have a C++ program written as a CWinApp which compiles but somewhere
has an error. I use the visual studio .NET compiler by the way. I am
use to programs written in unix environment. Because the program has an
error I want to use print out statements using cout to check values of
my variables. But the problem is that I do not have a console where it
prints out the value. How do I check now the value ??? Thank you in
advance for your help.
Robert
Technically you are off-topic because your question is related
to how a specific compiler under a specific operating system works.
So next time ask in a Windows programming group.
However:
* Visual Studio comes with a good debugger. You should not have
problems to use that. The debugger can show any variable.
Just position the caret on the variable, right click and select
'Quick View' (That's how it worked under VC++ 6.0, but I guess
.NET is not much different)
* When you have your debugger running, check out the TRACE macro
This comes in handy, if you regularily need to output great amounts
of debug data.
* If all else fails, you can always use MessageBoxes to pop up
a quick and dirty output dialog.
--
Karl Heinz Buchegger
kb******@gascad.at