Don't have time right now to get it to compile without the res.h file. If you post it I will try again...
I would...
Comment out all the code. Leave only the case/break and see if it compiles. Then add the code back to find the culprit.
Good luck.....
EDIT: Opps