remove delete [] gTitle on onTimer()
some code cleanup
Revert "remove delete [] gTitle on onTimer()"

This reverts commit 8f231139f7c44b30d58e4d238fb6f72144a4de82.
fix vc2008 project file
use Windows SEH for handling error on ReadConsoleInputA()
check INVALID_HANDLE_VALUE