Advertisement

Quick Visual C++ Question

Started by March 22, 2001 08:56 AM
2 comments, last by Eight 23 years, 10 months ago
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
Advertisement
That does just the job.

Cheers Crazy.

does TRACE work for regular win32 too? or what? i hate to have to do ascii conversions when using OutputDebugMessage()

a2k
------------------General Equation, this is Private Function reporting for duty, sir!a2k

This topic is closed to new replies.

Advertisement