c++ windows console application helper class