It is always better to continue these threads on the board rather than take it to e-mail. First, I am not in the office that often, you were lucky, second, nobody else learns anything!
This is a bit nasty as I didn't have a lot of time, but basically works with VC6.
bool Continue = 1;
if (a == 13)
Continue = 0;
buffer[c] = 0;