I have a console app that auto-answers incoming calls and I'm trying to add code to simulate some keypresses once a call has been answered. I'm using code from the wiki article on how to 'simulate a keypress' in 3rd edition. The example code starts with:
I have copied this code to my CStatusChecker::RunL() function where the call is answered when status is 'ringing'. I'm getting two errors when I try to compile "'Static' not declared (first use this function)" and "'CCoeEnv' has not been declared". I have #include W32STD.h and ws32 lib. The only thing I changed in the example code is the key being pressed. Please let me know what I might be missing.