Quick Visual C++ Question
Is there anyway to quickly output the contents of a variable to a console window (or something) in an MFC Single Document Interface application?
I''m currently using a MessageBox() but it''s bit annoying really. If I could just dump these variables to a debug window and look at it all afterwards, that would be perfect.
Many thanks,
Eight
use the TRACE macros (since you''re using MFC). it is just a convienient wrapper around OutputDebugMessage() that allows you to use printf like arguments:
TRACE( "the value is %d\n", value );
crazy166
some people think i''m crazy, some people know i am
TRACE( "the value is %d\n", value );
crazy166
some people think i''m crazy, some people know i am
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement