put a breakpoint inside the

if(result == 13)
{
....
...
}

and check if control is going there. I don't think its accepting keyboard entry like this.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook