Thread: MSVC Console app - two enters?

  1. #1
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856

    MSVC Console app - two enters?

    Please tell me if I'm losing my mind. It has become increasingly clear that whenever I create a console app in VC it requires two enters to read data (from cin). I compile the same source with borland and have no problem. Are you familiar with this odd happenstance or am I merely losing my mind? How would one go about fixing it?

    Just to prove I'm not crazy (or for that matter, that I am), I'm attaching a tiny VC project to demonstrate...

    Btw, I'm using VC6. This problem never used to happen before I upgraded..

    [edit]
    Hmm.. I was just thinking.. This is talking about MSVC which is why I posted on the Windows board, but it's a console app, so perhaps it should be moved by one of you helpful administrators... ?
    [/edit]
    Last edited by LuckY; 12-30-2003 at 02:08 PM.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    http://support.microsoft.com/default...NoWebContent=1

    It's a bug with VC++6....but there's a fix in the above article

  3. #3
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    Perfection..

    Thanks a lot Fordy.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Fixes for Library Bugs in VC++ V5.0/V6.0

    Damn you Fordy for stealing my glory.

    gg

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Also, take a look at STLPort as a replacement for Microsoft's STL implementation.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 28
    Last Post: 10-30-2008, 03:52 PM
  2. Console app termination
    By C+/- in forum C++ Programming
    Replies: 2
    Last Post: 05-24-2008, 11:29 AM
  3. Console App w/ Threads and Events?
    By sean in forum C# Programming
    Replies: 1
    Last Post: 07-02-2004, 12:16 AM
  4. Need help migrating console app to windows app
    By DelphiGuy in forum C++ Programming
    Replies: 1
    Last Post: 03-14-2004, 07:05 PM
  5. Project Builder console app
    By Luigi in forum C++ Programming
    Replies: 0
    Last Post: 12-28-2002, 07:57 PM