editBox.GetLine(0, buffer, sizeof(buffer));

My compiler (using VC++ 6 by the way) says that "EditBox" is an undeclared identifier...