Show results in command prompt (MFC)

This is a discussion on Show results in command prompt (MFC) within the Windows Programming forums, part of the Platform Specific Boards category; I use MFC for an appliction but I want to show some results in command prompt. Do you know how ...

  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, 05:58 PM
  4. MFC: Multi-threaded DLL Errors & Related Syntax :: C++
    By kuphryn in forum C++ Programming
    Replies: 3
    Last Post: 02-13-2002, 08:02 AM
  5. MFC is Challenging :: C++
    By kuphryn in forum C++ Programming
    Replies: 8
    Last Post: 02-05-2002, 12:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21