Can't call Client.connect() inside class

what you googled "C++ call static member" or somthing like that! I don't think you did. By the way if you look at my initial reply I gave you the answer.

In other words I told you

A. how to find the answer and

B. What the answer was ::

Mark