
redirecting a debug string to the debug IDE window in non-MFC app (ala TRACE)
Greets,
You can use the Win32 API function, OutputDebugString() in order to send
output to the debug window. It does not provide variable arguments, so
you'll either have to use sprintf() to store such in a buffer and use this
function or write your own wrapper function that provides support for
variable length arguments.
Regards,
Joe
Quote:
> Hi,
> I hope this is an easy one: I would like to redirect a string to the debug
> IDE window in a non-MFC app. Something like this:
> TRACE( "In MyFunction." );
> I tried printf( "In MyFunction." ); and fprintf( stderr, "In
MyFunction." );
> but it doesn't work.
> Thanks, John