Thread: Writing to the Debug window ~ VC++

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    387

    Writing to the Debug window ~ VC++

    Does anyone here know if there is a function to write stuff into the Debug Window in Visual C++ 6.0?

    If you dont know what the Debug Window is:
    Click on the Debug Tab of the Output Window.
    "There are three kinds of people in the world...
    Those that can count and those that can't."

  2. #2
    Registered User blight2c's Avatar
    Join Date
    Mar 2002
    Posts
    266
    haven't a clue, but if you don't mind me asking: why would you want to do that?

  3. #3
    Registered User Liam Battle's Avatar
    Join Date
    Jan 2002
    Posts
    114
    I've been working with Visual C++ 5.0 since it came out, and ive been using Visual C++ 6.0 as well... and ive never ever wanted to write anything to the output window !

    why oh why are u trying to do that ?

    also i would consult the compiler manual if you have a question like that...

    *snicker*
    LB0: * Life once school is done
    LB1: N <- WakeUp;
    LB2: N <- C++_Code;
    LB3: N >= Tired : N <- Sleep;
    LB4: JMP*-3;

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    49
    When you debug a program , the macro TRACE0() can output string to debug window.
    Hello, everyone.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    i would want to do that because, say i had a problem with a button clicking, and wanted to see if it was actually taking the click or whatever i'd go:

    Code:
    case ID_BUTTON1:
         // Write to debug window: "BUTTON1 WAS CLICKED"
         break;
    "There are three kinds of people in the world...
    Those that can count and those that can't."

  6. #6
    Registered User
    Join Date
    May 2002
    Posts
    49
    Code:
    case ID_BUTTON1:
        TRACE0("The first button is pressed!\n");
        break;
    Hello, everyone.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  2. Adding buttons, edit boxes, etc to the window
    By rainmanddw in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2006, 03:07 PM
  3. input/output
    By dogbert234 in forum Windows Programming
    Replies: 11
    Last Post: 01-26-2005, 06:57 AM
  4. dont want to use all params
    By stallion in forum Windows Programming
    Replies: 2
    Last Post: 02-18-2003, 08:10 AM
  5. Invoking MSWord
    By Donn in forum C Programming
    Replies: 21
    Last Post: 09-08-2001, 04:08 PM