I'm having problems getting input in my console app. cin.getline is leaving characters in the input buffer if the user inputs more than what getline is set to recieve. I looked at how to clear the buffer in the faq and from searching the board, but none of them seem to work properly. I believe the issue is that all other input I have uses ReadConsoleInput. I'm trying to get the user to input a name that can contain spaces, so I want them to be able to see what they type and be able to correct typos with backspacing. I've tried using ReadConsole and it almost works, but it ruins my entire input and output afterwards. I've also tried various ways with ReadConsoleInput, but haven't had any success that way either. I'm putting together a sample program with only the needed coding to show what's happening, so i'll attach it when i get it done if it's needed to help.
edit: Added cpp file with sample code. I'm using MSVC++ 2005 express. It has memory leaks in that sample, but i didn't include my class which is where i'm storing the name.