randysimes, the basic problem is that you have declared the class PWServer but you never instantiated an object of that class.
It is important to understand the difference between a class definition and an instantiation because you can not call class methods via the class name, you have to call them via an object of the class, unless the methods are static class methods.
JonathanS has suggested 1 method of instantiating a class using the new operator. If you use this method remember to delete the object when you have finished with it or you will get a memory leak. Also he has his syntax slightly wrong it should be
-
PWServer *pws = new PWServer(infile,outfile,max);
-
-
/* Code using pws */
-
-
delete pws;
-
Another method would be to just declare the object on the stack, the compiler will handle deleting the object but it will only exist for the lifetime of the function it is declared in.
-
PWServer pws(infile,outfile,max);
-
-
/* Code using pws */
-