Thread: Show results in command prompt (MFC)

  1. #1
    Registered User
    Join Date
    Apr 2007
    Location
    Greece
    Posts
    52

    Show results in command prompt (MFC)

    I use MFC for an appliction but I want to show some results in command prompt. Do you know how I can do it, or an efficient alternative way?

  2. #2
    Registered User
    Join Date
    Apr 2007
    Location
    Greece
    Posts
    52
    I found the solution. It's merely two lines.

    Code:
    AllocConsole();
    freopen ("CONOUT$", "w", stdout );

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mfc
    By fkheng in forum Windows Programming
    Replies: 2
    Last Post: 07-23-2003, 02:12 AM
  2. show all compiler results?
    By bluehead in forum C++ Programming
    Replies: 2
    Last Post: 08-20-2002, 10:57 PM
  3. Beginning MFC (Prosise) Part III - Now What? :: C++
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 03-03-2002, 06:58 PM
  4. MFC: Multi-threaded DLL Errors & Related Syntax :: C++
    By kuphryn in forum C++ Programming
    Replies: 3
    Last Post: 02-13-2002, 09:02 AM
  5. MFC is Challenging :: C++
    By kuphryn in forum C++ Programming
    Replies: 8
    Last Post: 02-05-2002, 01:33 AM