Thread: Is it possible to get a console up with a win32 app?

  1. #1
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141

    Is it possible to get a console up with a win32 app?

    And use basic cin and cout operations? I am trying to learn a networking library, but it insists that I use a win32 app, and not a console one. Using cin and cout simply causes txt files for stdout, rather than ouputting to screen.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Found out how after a search on google, didn't think it would be so easy.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125
    just use AllocConsole(); and use GetStdHandle to write or read from it
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding a console window to a Win32 app
    By VirtualAce in forum Game Programming
    Replies: 7
    Last Post: 02-01-2009, 01:09 PM
  2. Win32 Console app Problems...
    By Junior89 in forum C++ Programming
    Replies: 3
    Last Post: 01-20-2005, 05:17 PM
  3. confusion win32 -console app
    By GanglyLamb in forum C Programming
    Replies: 2
    Last Post: 06-11-2003, 10:12 AM
  4. Win32 Console App... multiple console buffers
    By Trauts in forum Windows Programming
    Replies: 2
    Last Post: 04-28-2003, 11:26 AM
  5. Console App Vs Win32
    By Jez_Master in forum C++ Programming
    Replies: 1
    Last Post: 04-07-2002, 05:46 PM