When I changed the name of the member function it now says "error C2065: 'sleep' : undeclared identifier" I am using Microsoft Visual C++ 6.0 and running WinXP Home