never mind. I hadn't included the header file either.

Thanks for all your help.